(svn r11214) -Fix [FS#1296]: planes can't use heliports so refuse these orders

This commit is contained in:
glx
2007-10-05 22:13:35 +00:00
parent 0fd7d6257b
commit 8e5480aa16
4 changed files with 23 additions and 10 deletions

View File

@@ -282,7 +282,7 @@ CommandCost CmdBuildAircraft(TileIndex tile, uint32 flags, uint32 p1, uint32 p2)
SET_EXPENSES_TYPE(EXPENSES_NEW_VEHICLES);
/* Prevent building aircraft types at places which can't handle them */
if (!IsAircraftBuildableAtStation(p1, tile)) return CMD_ERROR;
if (!CanAircraftUseStation(p1, tile)) return CMD_ERROR;
/* Allocate 2 or 3 vehicle structs, depending on type
* vl[0] = aircraft, vl[1] = shadow, [vl[2] = rotor] */