diff options
author | rubidium <rubidium@openttd.org> | 2009-02-21 21:38:46 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2009-02-21 21:38:46 +0000 |
commit | b68a870fe3c000e8766e589dc8266fe713c934e3 (patch) | |
tree | bd6e98d536f3af86eeb6ff7ef8cae4ec6ebdd097 /src/industry_cmd.cpp | |
parent | 930a31f5f5a75e751eabcd1dcb58618d37a08f40 (diff) | |
download | openttd-b68a870fe3c000e8766e589dc8266fe713c934e3.tar.xz |
(svn r15550) -Fix [FS#2654]: bogus secondary error message when dynamiting industries/unmoveables; "X is in the way" isn't helpful at all in that case.
Diffstat (limited to 'src/industry_cmd.cpp')
-rw-r--r-- | src/industry_cmd.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/industry_cmd.cpp b/src/industry_cmd.cpp index d1c215624..a8fe22914 100644 --- a/src/industry_cmd.cpp +++ b/src/industry_cmd.cpp @@ -423,7 +423,7 @@ static CommandCost ClearTile_Industry(TileIndex tile, DoCommandFlag flags) ((indspec->behaviour & INDUSTRYBEH_BUILT_ONWATER) || HasBit(GetIndustryTileSpec(GetIndustryGfx(tile))->slopes_refused, 5)))) { SetDParam(0, indspec->name); - return_cmd_error(STR_4800_IN_THE_WAY); + return_cmd_error(flags & DC_AUTO ? STR_4800_IN_THE_WAY : INVALID_STRING_ID); } if (flags & DC_EXEC) { |