Changeset - r1238:4acabc867520
[Not reviewed]
master
0 1 0
bjarni - 20 years ago 2005-01-30 21:06:09
bjarni@openttd.org
(svn r1742) - Fix: fixed bug introduced in r1730 where AI players had problems when building aircrafts
1 file changed with 1 insertions and 1 deletions:
0 comments (0 inline, 0 general)
aircraft_cmd.c
Show inline comments
 
@@ -163,13 +163,13 @@ int32 CmdBuildAircraft(int x, int y, uin
 

	
 
	if (!IsEngineBuildable(p1, VEH_Aircraft)) return CMD_ERROR;
 

	
 
	// Workaround: TODO: make AI players try to build planes in a hangar instead of just an airport tile.
 
	if (!IsAircraftHangarTile((TileIndex)tile) && IS_HUMAN_PLAYER(_current_player)) return CMD_ERROR;
 

	
 
	if (_map_owner[tile] != _current_player) return CMD_ERROR;
 
	if (_map_owner[tile] != _current_player && IS_HUMAN_PLAYER(_current_player)) return CMD_ERROR;
 

	
 
	SET_EXPENSES_TYPE(EXPENSES_NEW_VEHICLES);
 

	
 
	value = EstimateAircraftCost(p1);
 

	
 
	if (flags & DC_QUERY_COST)
0 comments (0 inline, 0 general)