mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2025-08-21 21:49:10 +00:00
(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
This commit is contained in:
@@ -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);
|
||||
|
||||
|
Reference in New Issue
Block a user