diff options
author | rubidium <rubidium@openttd.org> | 2009-09-04 20:04:54 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2009-09-04 20:04:54 +0000 |
commit | 27738c6638c5ebdc2aec373617ee75202e719e62 (patch) | |
tree | 1fe09f7c517f2aa8697003e56e41057e3b316b4d /src/industry_gui.cpp | |
parent | 925bada35a7ad71834630f4c9bbaef2c24bc4dfb (diff) | |
download | openttd-27738c6638c5ebdc2aec373617ee75202e719e62.tar.xz |
(svn r17414) -Codechange: only send/read the number of bits that can be actually useful when building industries
Diffstat (limited to 'src/industry_gui.cpp')
-rw-r--r-- | src/industry_gui.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/industry_gui.cpp b/src/industry_gui.cpp index 8c33d9282..8cfd50cf7 100644 --- a/src/industry_gui.cpp +++ b/src/industry_gui.cpp @@ -385,7 +385,7 @@ public: _current_company = OWNER_NONE; _generating_world = true; _ignore_restrictions = true; - success = DoCommandP(tile, (InteractiveRandomRange(indsp->num_table) << 16) | this->selected_type, seed, CMD_BUILD_INDUSTRY | CMD_MSG(STR_ERROR_CAN_T_CONSTRUCT_THIS_INDUSTRY)); + success = DoCommandP(tile, (InteractiveRandomRange(indsp->num_table) << 8) | this->selected_type, seed, CMD_BUILD_INDUSTRY | CMD_MSG(STR_ERROR_CAN_T_CONSTRUCT_THIS_INDUSTRY)); if (!success) { SetDParam(0, indsp->name); ShowErrorMessage(_error_message, STR_ERROR_CAN_T_BUILD_HERE, pt.x, pt.y); @@ -394,7 +394,7 @@ public: _ignore_restrictions = false; _generating_world = false; } else { - success = DoCommandP(tile, (InteractiveRandomRange(indsp->num_table) << 16) | this->selected_type, seed, CMD_BUILD_INDUSTRY | CMD_MSG(STR_ERROR_CAN_T_CONSTRUCT_THIS_INDUSTRY)); + success = DoCommandP(tile, (InteractiveRandomRange(indsp->num_table) << 8) | this->selected_type, seed, CMD_BUILD_INDUSTRY | CMD_MSG(STR_ERROR_CAN_T_CONSTRUCT_THIS_INDUSTRY)); } /* If an industry has been built, just reset the cursor and the system */ |