(svn r1700) - Fix: Hacked clients can no longer be used to build vehicles that are not available yet (Hackykid)

This commit is contained in:
bjarni
2005-01-27 21:00:05 +00:00
parent 690027d1ab
commit 72b9358291
6 changed files with 33 additions and 0 deletions

View File

@@ -161,6 +161,8 @@ int32 CmdBuildAircraft(int x, int y, uint32 flags, uint32 p1, uint32 p2)
const AircraftVehicleInfo *avi = AircraftVehInfo(p1);
Engine *e;
if (!(IsEngineBuildable(p1, VEH_Aircraft))) return CMD_ERROR;
SET_EXPENSES_TYPE(EXPENSES_NEW_VEHICLES);
value = EstimateAircraftCost(p1);