Loading

Paste #p2cylboxi

  1.     if (IsSavegameVersionBefore(195)) {
  2.         for (TileIndex t = 0; t < map_size; t++) {
  3.             if ((IsTileType(t, MP_STATION) || IsTileType(t, MP_WATER) || IsTileType(t, MP_OBJECT)) && GetWaterClass(t) == WATER_CLASS_CANAL) {
  4.                 assert(IsValidTile(t));
  5.                 assert(!IsTileType(t, MP_HOUSE));
  6.                 assert(!IsTileType(t, MP_INDUSTRY));
  7.                 Owner old = (Owner)GB(_m[t].m1, 0, 5);
  8.                 if (old = OWNER_NONE) SB(_m[t].m1, 0, 4, OWNER_TOWN);
  9.                 if (old = OWNER_WATER) SB(_m[t].m1, 0, 4, OWNER_TOWN);
  10.             }
  11.         }
  12.     }

Comments