Changeset - r1906:eba0f6945e49
[Not reviewed]
master
0 4 0
hackykid - 19 years ago 2005-06-05 20:45:04
hackykid@openttd.org
(svn r2412) - Fix: [ 1214948 ] building vehicles without depot crashes game. (Chris Huebsch)
4 files changed with 4 insertions and 4 deletions:
0 comments (0 inline, 0 general)
aircraft_gui.c
Show inline comments
 
@@ -1011,13 +1011,13 @@ static void PlayerAircraftWndProc(Window
 

	
 
			if (!IsWindowOfPrototype(w, _player_aircraft_widgets))
 
				break;
 

	
 
			tile = _last_built_aircraft_depot_tile;
 
			do {
 
				if (IsTileOwner(tile, _local_player) && IsAircraftHangarTile(tile)) {
 
				if (IsAircraftHangarTile(tile) && IsTileOwner(tile, _local_player)) {
 
					ShowAircraftDepotWindow(tile);
 
					ShowBuildAircraftWindow(tile);
 
					return;
 
				}
 

	
 
				tile = TILE_MASK(tile + 1);
roadveh_gui.c
Show inline comments
 
@@ -889,13 +889,13 @@ static void PlayerRoadVehWndProc(Window 
 

	
 
			if (!IsWindowOfPrototype(w, _player_roadveh_widgets))
 
				break;
 

	
 
			tile = _last_built_road_depot_tile;
 
			do {
 
				if (IsTileOwner(tile, _local_player) && IsTileDepotType(tile, TRANSPORT_ROAD)) {
 
				if (IsTileDepotType(tile, TRANSPORT_ROAD) && IsTileOwner(tile, _local_player)) {
 
					ShowRoadDepotWindow(tile);
 
					ShowBuildRoadVehWindow(tile);
 
					return;
 
				}
 

	
 
				tile = TILE_MASK(tile + 1);
ship_gui.c
Show inline comments
 
@@ -993,13 +993,13 @@ static void PlayerShipsWndProc(Window *w
 
			if (!IsWindowOfPrototype(w, _player_ships_widgets))
 
				break;
 

	
 

	
 
			tile = _last_built_ship_depot_tile;
 
			do {
 
				if (IsTileOwner(tile, _local_player) && IsTileDepotType(tile, TRANSPORT_WATER)) {
 
				if (IsTileDepotType(tile, TRANSPORT_WATER) && IsTileOwner(tile, _local_player)) {
 
					ShowShipDepotWindow(tile);
 
					ShowBuildShipWindow(tile);
 
					return;
 
				}
 

	
 
				tile = TILE_MASK(tile + 1);
train_gui.c
Show inline comments
 
@@ -1340,13 +1340,13 @@ static void PlayerTrainsWndProc(Window *
 

	
 
			if (!IsWindowOfPrototype(w, _player_trains_widgets))
 
				break;
 

	
 
			tile = _last_built_train_depot_tile;
 
			do {
 
				if (IsTileOwner(tile, _local_player) && IsTileDepotType(tile, TRANSPORT_RAIL)) {
 
				if (IsTileDepotType(tile, TRANSPORT_RAIL) && IsTileOwner(tile, _local_player)) {
 
					ShowTrainDepotWindow(tile);
 
					ShowBuildTrainWindow(tile);
 
					return;
 
				}
 

	
 
				tile = TILE_MASK(tile + 1);
0 comments (0 inline, 0 general)