diff options
author | glx <glx@openttd.org> | 2007-10-17 15:47:49 +0000 |
---|---|---|
committer | glx <glx@openttd.org> | 2007-10-17 15:47:49 +0000 |
commit | ad0574c226ed4af89d9da13385f24da6ccf397ae (patch) | |
tree | dabee47298f55fc1c5fdf56c73b3928991090763 /src | |
parent | 0ab883c39384ac1f870376fb107c0a2f94ebc09d (diff) | |
download | openttd-ad0574c226ed4af89d9da13385f24da6ccf397ae.tar.xz |
(svn r11285) -Fix: 'site unsuitable' was always shown instead specified message when trying to build industry ingame (Csaboka)
Diffstat (limited to 'src')
-rw-r--r-- | src/industry_cmd.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/industry_cmd.cpp b/src/industry_cmd.cpp index 7dfb5e38b..28dcd8dc6 100644 --- a/src/industry_cmd.cpp +++ b/src/industry_cmd.cpp @@ -1633,9 +1633,9 @@ CommandCost CmdBuildIndustry(TileIndex tile, uint32 flags, uint32 p1, uint32 p2) num = indspec->num_table; itt = indspec->table; - + _error_message = STR_0239_SITE_UNSUITABLE; do { - if (--num < 0) return_cmd_error(STR_0239_SITE_UNSUITABLE); + if (--num < 0) return CMD_ERROR; } while (!CheckIfIndustryTilesAreFree(tile, itt[num], num, p1)); if (CreateNewIndustryHelper(tile, p1, flags, indspec, num) == NULL) return CMD_ERROR; |