Changeset - r1876:196fc28c8001
[Not reviewed]
master
0 1 0
Darkvater - 19 years ago 2005-05-30 13:35:39
darkvater@openttd.org
(svn r2382) - Fix: Check the airport type when building an airport
1 file changed with 1 insertions and 1 deletions:
0 comments (0 inline, 0 general)
station_cmd.c
Show inline comments
 
@@ -1672,7 +1672,7 @@ int32 CmdBuildAirport(int x, int y, uint
 
	SET_EXPENSES_TYPE(EXPENSES_CONSTRUCTION);
 

	
 
	/* Check if a valid, buildable airport was chosen for construction */
 
	if (!HASBIT(GetValidAirports(), p1)) return CMD_ERROR;
 
	if (p1 > lengthof(_airport_map5_tiles) || !HASBIT(GetValidAirports(), p1)) return CMD_ERROR;
 

	
 
	tile = TILE_FROM_XY(x,y);
 

	
0 comments (0 inline, 0 general)