openttd.c
changeset 2360 4e4ebe18e448
parent 2340 e18ef06bc59a
child 2380 392bba57462d
equal deleted inserted replaced
2359:ff4f2e95cfc9 2360:4e4ebe18e448
  1006 	for (tile = 0; tile != MapSize(); tile++) {
  1006 	for (tile = 0; tile != MapSize(); tile++) {
  1007 		if (IsTileType(tile, MP_STREET)) {
  1007 		if (IsTileType(tile, MP_STREET)) {
  1008 			if (IsLevelCrossing(tile) && _m[tile].m3 & 0x80)
  1008 			if (IsLevelCrossing(tile) && _m[tile].m3 & 0x80)
  1009 				_m[tile].m3 = OWNER_TOWN;
  1009 				_m[tile].m3 = OWNER_TOWN;
  1010 
  1010 
  1011 			if (_m[tile].owner & 0x80) SetTileOwner(tile, OWNER_TOWN);
  1011 			if (_m[tile].m1 & 0x80) SetTileOwner(tile, OWNER_TOWN);
  1012 		} else if (IsTileType(tile, MP_TUNNELBRIDGE)) {
  1012 		} else if (IsTileType(tile, MP_TUNNELBRIDGE)) {
  1013 			if (_m[tile].owner & 0x80) SetTileOwner(tile, OWNER_TOWN);
  1013 			if (_m[tile].m1 & 0x80) SetTileOwner(tile, OWNER_TOWN);
  1014 		}
  1014 		}
  1015 	}
  1015 	}
  1016 }
  1016 }
  1017 
  1017 
  1018 // before savegame version 4, the name of the company determined if it existed
  1018 // before savegame version 4, the name of the company determined if it existed