summaryrefslogtreecommitdiff
path: root/ship_cmd.c
diff options
context:
space:
mode:
authorbjarni <bjarni@openttd.org>2006-01-18 14:12:26 +0000
committerbjarni <bjarni@openttd.org>2006-01-18 14:12:26 +0000
commit2b31f5fe7e19e529c80e534ac47f66dc97e5c7fb (patch)
treeaa2503d834088b8d7eb5a8105c69d71cbb815c45 /ship_cmd.c
parent6a665b69b5ea4f63ecd552ebf26aed0a54847265 (diff)
downloadopenttd-2b31f5fe7e19e529c80e534ac47f66dc97e5c7fb.tar.xz
(svn r3402) -Fix: [building/cloning] added a string telling if build failed due to not being able to build a vehicle. Triggered when cloning a retired design
Diffstat (limited to 'ship_cmd.c')
-rw-r--r--ship_cmd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ship_cmd.c b/ship_cmd.c
index bf18bdd9a..b73b48380 100644
--- a/ship_cmd.c
+++ b/ship_cmd.c
@@ -827,7 +827,7 @@ int32 CmdBuildShip(int x, int y, uint32 flags, uint32 p1, uint32 p2)
TileIndex tile = TileVirtXY(x, y);
Engine *e;
- if (!IsEngineBuildable(p1, VEH_Ship)) return CMD_ERROR;
+ if (!IsEngineBuildable(p1, VEH_Ship)) return_cmd_error(STR_ENGINE_NOT_BUILDABLE);
SET_EXPENSES_TYPE(EXPENSES_NEW_VEHICLES);