Changeset - r1265:eeb75e2e160c
[Not reviewed]
master
0 1 0
tron - 19 years ago 2005-02-02 15:45:53
tron@openttd.org
(svn r1769) Don't compute the same value twice, remove one function call
1 file changed with 1 insertions and 3 deletions:
0 comments (0 inline, 0 general)
station_cmd.c
Show inline comments
 
@@ -1670,15 +1670,13 @@ int32 CmdBuildAirport(int x, int y, uint
 
		if (st->airport_tile != 0)
 
			return_cmd_error(STR_300D_TOO_CLOSE_TO_ANOTHER_AIRPORT);
 
	} else {
 
		Town *t;
 

	
 
		airport_upgrade = false;
 

	
 
		st = AllocateStation();
 
		if (st == NULL)
 
			return CMD_ERROR;
 

	
 
		st->town = t = ClosestTownFromTile(tile, (uint)-1);
 
		st->town = t;
 

	
 
		if (_current_player < MAX_PLAYERS && flags&DC_EXEC)
 
			SETBIT(t->have_ratings, _current_player);
0 comments (0 inline, 0 general)