mirror of
https://github.com/JGRennison/OpenTTD-patches.git
synced 2024-11-17 21:25:40 +00:00
(svn r3189) There's a dedicated function to check if it's a hangar tile, so use it
This commit is contained in:
parent
e901aefb74
commit
ea5672ec8f
@ -502,12 +502,7 @@ static void AircraftViewWndProc(Window *w, WindowEvent *e)
|
||||
uint32 disabled = 1 << 8;
|
||||
StringID str;
|
||||
|
||||
{
|
||||
TileIndex tile = v->tile;
|
||||
|
||||
if (IsTileType(tile, MP_STATION) &&
|
||||
(_m[tile].m5 == 32 || _m[tile].m5 == 65) &&
|
||||
v->vehstatus&VS_STOPPED)
|
||||
if (v->vehstatus & VS_STOPPED && IsAircraftHangarTile(v->tile)) {
|
||||
disabled = 0;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user