summaryrefslogtreecommitdiff
path: root/src/command.cpp
diff options
context:
space:
mode:
authormaedhros <maedhros@openttd.org>2007-04-29 08:43:00 +0000
committermaedhros <maedhros@openttd.org>2007-04-29 08:43:00 +0000
commit02e770ff2cf77776252d1481456817950bf138a9 (patch)
tree559214dc543888bbb895568ad27800695218f8d8 /src/command.cpp
parentccf4ddc06f1a97ed4eec10f2d04f102e964c7933 (diff)
downloadopenttd-02e770ff2cf77776252d1481456817950bf138a9.tar.xz
(svn r9742) -Fix (r9689) [FS#739]: Fix cloning with refit costs again, hopefully for good this time.
Diffstat (limited to 'src/command.cpp')
-rw-r--r--src/command.cpp8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/command.cpp b/src/command.cpp
index 94717a38d..0b20d9820 100644
--- a/src/command.cpp
+++ b/src/command.cpp
@@ -456,13 +456,17 @@ bool DoCommandP(TileIndex tile, uint32 p1, uint32 p2, CommandCallback *callback,
* restrictions which may cause the test run to fail (the previous
* road fragments still stay there and the town won't let you
* disconnect the road system), but the exec will succeed and this
- * fact will trigger an assertion failure. --pasky */
+ * fact will trigger an assertion failure. --pasky
+ * CMD_CLONE_VEHICLE: Both building new vehicles and refitting them can be
+ * influenced by newgrf callbacks, which makes it impossible to accurately
+ * estimate the cost of cloning a vehicle. */
notest =
(cmd & 0xFF) == CMD_CLEAR_AREA ||
(cmd & 0xFF) == CMD_CONVERT_RAIL ||
(cmd & 0xFF) == CMD_LEVEL_LAND ||
(cmd & 0xFF) == CMD_REMOVE_ROAD ||
- (cmd & 0xFF) == CMD_REMOVE_LONG_ROAD;
+ (cmd & 0xFF) == CMD_REMOVE_LONG_ROAD ||
+ (cmd & 0xFF) == CMD_CLONE_VEHICLE;
_docommand_recursive = 1;