mirror of https://github.com/OpenTTD/OpenTTD
(svn r3189) There's a dedicated function to check if it's a hangar tile, so use it
parent
b5dafb8f94
commit
66d44766a7
|
@ -502,13 +502,8 @@ static void AircraftViewWndProc(Window *w, WindowEvent *e)
|
||||||
uint32 disabled = 1 << 8;
|
uint32 disabled = 1 << 8;
|
||||||
StringID str;
|
StringID str;
|
||||||
|
|
||||||
{
|
if (v->vehstatus & VS_STOPPED && IsAircraftHangarTile(v->tile)) {
|
||||||
TileIndex tile = v->tile;
|
disabled = 0;
|
||||||
|
|
||||||
if (IsTileType(tile, MP_STATION) &&
|
|
||||||
(_m[tile].m5 == 32 || _m[tile].m5 == 65) &&
|
|
||||||
v->vehstatus&VS_STOPPED)
|
|
||||||
disabled = 0;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if (v->owner != _local_player) disabled |= 1 << 8 | 1 << 7;
|
if (v->owner != _local_player) disabled |= 1 << 8 | 1 << 7;
|
||||||
|
|
Loading…
Reference in New Issue