equal
deleted
inserted
replaced
2165 |
2165 |
2166 static void ChangeTileOwner_Track(TileIndex tile, PlayerID old_player, PlayerID new_player) |
2166 static void ChangeTileOwner_Track(TileIndex tile, PlayerID old_player, PlayerID new_player) |
2167 { |
2167 { |
2168 if (!IsTileOwner(tile, old_player)) return; |
2168 if (!IsTileOwner(tile, old_player)) return; |
2169 |
2169 |
2170 if (new_player != 255) { |
2170 if (new_player != OWNER_SPECTATOR) { |
2171 SetTileOwner(tile, new_player); |
2171 SetTileOwner(tile, new_player); |
2172 } else { |
2172 } else { |
2173 DoCommandByTile(tile, 0, 0, DC_EXEC, CMD_LANDSCAPE_CLEAR); |
2173 DoCommandByTile(tile, 0, 0, DC_EXEC, CMD_LANDSCAPE_CLEAR); |
2174 } |
2174 } |
2175 } |
2175 } |