openttd.c
changeset 1977 4392ae3d8e31
parent 1962 51ee4f459268
child 1981 de031d2aed47
equal deleted inserted replaced
1976:41c542bd18c4 1977:4392ae3d8e31
  1179 	}
  1179 	}
  1180 }
  1180 }
  1181 
  1181 
  1182 static void ConvertTownOwner(void)
  1182 static void ConvertTownOwner(void)
  1183 {
  1183 {
  1184 	uint tile;
  1184 	TileIndex 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 (IsLevelCrossing(tile) && _map3_lo[tile] & 0x80)
  1188 			if (IsLevelCrossing(tile) && _map3_lo[tile] & 0x80)
  1189 				_map3_lo[tile] = OWNER_TOWN;
  1189 				_map3_lo[tile] = OWNER_TOWN;