mirror of https://github.com/OpenTTD/OpenTTD
Fix 6fe445e: [Script] Respect joining adjacent when building an airport
parent
9fca8af586
commit
675cf7a8ee
|
@ -77,7 +77,7 @@
|
||||||
EnforcePrecondition(false, IsValidAirportType(type));
|
EnforcePrecondition(false, IsValidAirportType(type));
|
||||||
EnforcePrecondition(false, station_id == ScriptStation::STATION_NEW || station_id == ScriptStation::STATION_JOIN_ADJACENT || ScriptStation::IsValidStation(station_id));
|
EnforcePrecondition(false, station_id == ScriptStation::STATION_NEW || station_id == ScriptStation::STATION_JOIN_ADJACENT || ScriptStation::IsValidStation(station_id));
|
||||||
|
|
||||||
return ScriptObject::Command<CMD_BUILD_AIRPORT>::Do(tile, type, 0, (ScriptStation::IsValidStation(station_id) ? station_id : INVALID_STATION), station_id == ScriptStation::STATION_JOIN_ADJACENT);
|
return ScriptObject::Command<CMD_BUILD_AIRPORT>::Do(tile, type, 0, (ScriptStation::IsValidStation(station_id) ? station_id : INVALID_STATION), station_id != ScriptStation::STATION_JOIN_ADJACENT);
|
||||||
}
|
}
|
||||||
|
|
||||||
/* static */ bool ScriptAirport::RemoveAirport(TileIndex tile)
|
/* static */ bool ScriptAirport::RemoveAirport(TileIndex tile)
|
||||||
|
|
Loading…
Reference in New Issue