equal
deleted
inserted
replaced
1186 for (tile = 0; tile != MapSize(); tile++) { |
1186 for (tile = 0; tile != MapSize(); tile++) { |
1187 if (IsTileType(tile, MP_STREET)) { |
1187 if (IsTileType(tile, MP_STREET)) { |
1188 if ((_map5[tile] & 0xF0) == 0x10 && _map3_lo[tile] & 0x80) |
1188 if ((_map5[tile] & 0xF0) == 0x10 && _map3_lo[tile] & 0x80) |
1189 _map3_lo[tile] = OWNER_TOWN; |
1189 _map3_lo[tile] = OWNER_TOWN; |
1190 |
1190 |
1191 if (_map_owner[tile] & 0x80) |
1191 if (_map_owner[tile] & 0x80) SetTileOwner(tile, OWNER_TOWN); |
1192 _map_owner[tile] = OWNER_TOWN; |
|
1193 } else if (IsTileType(tile, MP_TUNNELBRIDGE)) { |
1192 } else if (IsTileType(tile, MP_TUNNELBRIDGE)) { |
1194 if (_map_owner[tile] & 0x80) |
1193 if (_map_owner[tile] & 0x80) SetTileOwner(tile, OWNER_TOWN); |
1195 _map_owner[tile] = OWNER_TOWN; |
|
1196 } |
1194 } |
1197 } |
1195 } |
1198 } |
1196 } |
1199 |
1197 |
1200 // before savegame version 4, the name of the company determined if it existed |
1198 // before savegame version 4, the name of the company determined if it existed |
1298 uint w = MapSizeX(); |
1296 uint w = MapSizeX(); |
1299 uint h = MapSizeY(); |
1297 uint h = MapSizeY(); |
1300 |
1298 |
1301 BEGIN_TILE_LOOP(tile_cur, w, h, tile) |
1299 BEGIN_TILE_LOOP(tile_cur, w, h, tile) |
1302 if (IsTileType(tile_cur, MP_WATER) && GetTileOwner(tile_cur) >= MAX_PLAYERS) |
1300 if (IsTileType(tile_cur, MP_WATER) && GetTileOwner(tile_cur) >= MAX_PLAYERS) |
1303 _map_owner[tile_cur] = OWNER_WATER; |
1301 SetTileOwner(tile_cur, OWNER_WATER); |
1304 END_TILE_LOOP(tile_cur, w, h, tile) |
1302 END_TILE_LOOP(tile_cur, w, h, tile) |
1305 } |
1303 } |
1306 |
1304 |
1307 // convert road side to my format. |
1305 // convert road side to my format. |
1308 if (_opt.road_side) _opt.road_side = 1; |
1306 if (_opt.road_side) _opt.road_side = 1; |