openttd.c
changeset 1927 1181e7652e2f
parent 1902 86b7fb11f938
child 1962 8254df1b359b
equal deleted inserted replaced
1926:530480d14685 1927:1181e7652e2f
  1183 {
  1183 {
  1184 	uint tile;
  1184 	uint tile;
  1185 
  1185 
  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 (IsLevelCrossing(tile) && _map3_lo[tile] & 0x80)
  1189 				_map3_lo[tile] = OWNER_TOWN;
  1189 				_map3_lo[tile] = OWNER_TOWN;
  1190 
  1190 
  1191 			if (_map_owner[tile] & 0x80) SetTileOwner(tile, OWNER_TOWN);
  1191 			if (_map_owner[tile] & 0x80) SetTileOwner(tile, OWNER_TOWN);
  1192 		} else if (IsTileType(tile, MP_TUNNELBRIDGE)) {
  1192 		} else if (IsTileType(tile, MP_TUNNELBRIDGE)) {
  1193 			if (_map_owner[tile] & 0x80) SetTileOwner(tile, OWNER_TOWN);
  1193 			if (_map_owner[tile] & 0x80) SetTileOwner(tile, OWNER_TOWN);