From b87b5f1187b3b31b9085f008017a65693654b67b Mon Sep 17 00:00:00 2001 From: bjarni Date: Wed, 18 Jan 2006 14:12:26 +0000 Subject: (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 --- aircraft_cmd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'aircraft_cmd.c') diff --git a/aircraft_cmd.c b/aircraft_cmd.c index 668174314..5a5392c6b 100644 --- a/aircraft_cmd.c +++ b/aircraft_cmd.c @@ -141,7 +141,7 @@ int32 CmdBuildAircraft(int x, int y, uint32 flags, uint32 p1, uint32 p2) const AircraftVehicleInfo *avi; Engine *e; - if (!IsEngineBuildable(p1, VEH_Aircraft)) return CMD_ERROR; + if (!IsEngineBuildable(p1, VEH_Aircraft)) return_cmd_error(STR_ENGINE_NOT_BUILDABLE); value = EstimateAircraftCost(p1); -- cgit v1.2.3-54-g00ecf