Changeset - r26292:94543e332bc5
[Not reviewed]
master
0 1 0
glx22 - 2 years ago 2022-05-31 20:22:46
glx@openttd.org
Fix 6fe445e: [Script] Respect joining adjacent when building an airport
1 file changed with 1 insertions and 1 deletions:
0 comments (0 inline, 0 general)
src/script/api/script_airport.cpp
Show inline comments
 
@@ -77,7 +77,7 @@
 
	EnforcePrecondition(false, IsValidAirportType(type));
 
	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)
0 comments (0 inline, 0 general)