Changeset - r6717:5a2b86d92023
[Not reviewed]
master
0 1 0
rubidium - 17 years ago 2007-05-26 23:18:42
rubidium@openttd.org
(svn r9949) -Fix: (road) depots got deowned on bankrupts.
1 file changed with 6 insertions and 4 deletions:
0 comments (0 inline, 0 general)
src/road_cmd.cpp
Show inline comments
 
@@ -1284,10 +1284,12 @@ static uint32 VehicleEnter_Road(Vehicle 
 
static void ChangeTileOwner_Road(TileIndex tile, PlayerID old_player, PlayerID new_player)
 
{
 
	if (GetRoadTileType(tile) == ROAD_TILE_DEPOT) {
 
		if (new_player == PLAYER_SPECTATOR) {
 
			DoCommand(tile, 0, 0, DC_EXEC, CMD_LANDSCAPE_CLEAR);
 
		} else {
 
			SetTileOwner(tile, new_player);
 
		if (GetTileOwner(tile) == old_player) {
 
			if (new_player == PLAYER_SPECTATOR) {
 
				DoCommand(tile, 0, 0, DC_EXEC, CMD_LANDSCAPE_CLEAR);
 
			} else {
 
				SetTileOwner(tile, new_player);
 
			}
 
		}
 
		return;
 
	}
0 comments (0 inline, 0 general)