Changeset - r14855:19e299d2b3f4
[Not reviewed]
master
0 1 0
yexo - 15 years ago 2010-03-18 23:41:39
yexo@openttd.org
(svn r19461) -Fix (r19355): p1 was still used in two places
1 file changed with 2 insertions and 2 deletions:
0 comments (0 inline, 0 general)
src/station_cmd.cpp
Show inline comments
 
@@ -2187,7 +2187,7 @@ CommandCost CmdBuildAirport(TileIndex ti
 
			st = new Station(tile);
 

	
 
			st->town = t;
 
			st->string_id = GenerateStationName(st, tile, !(GetAirport(p1)->flags & AirportFTAClass::AIRPLANES) ? STATIONNAMING_HELIPORT : STATIONNAMING_AIRPORT);
 
			st->string_id = GenerateStationName(st, tile, !(GetAirport(airport_type)->flags & AirportFTAClass::AIRPLANES) ? STATIONNAMING_HELIPORT : STATIONNAMING_AIRPORT);
 

	
 
			if (Company::IsValidID(_current_company)) {
 
				SetBit(st->town->have_ratings, _current_company);
 
@@ -2205,7 +2205,7 @@ CommandCost CmdBuildAirport(TileIndex ti
 
		nearest->noise_reached += newnoise_level;
 

	
 
		st->AddFacility(FACIL_AIRPORT, tile);
 
		st->airport.type = (byte)p1;
 
		st->airport.type = airport_type;
 
		st->airport.flags = 0;
 

	
 
		st->rect.BeforeAddRect(tile, w, h, StationRect::ADD_TRY);
0 comments (0 inline, 0 general)