mirror of
https://github.com/JGRennison/OpenTTD-patches.git
synced 2024-11-16 00:12:51 +00:00
(svn r22644) -Codechange: Use IsShipDepotTile() instead of single water- and depottests. (adf88)
This commit is contained in:
parent
8565703a4c
commit
570da01d3a
@ -1514,7 +1514,7 @@ bool AfterLoadGame()
|
|||||||
*/
|
*/
|
||||||
if (IsSavegameVersionBefore(83)) {
|
if (IsSavegameVersionBefore(83)) {
|
||||||
for (TileIndex t = 0; t < map_size; t++) {
|
for (TileIndex t = 0; t < map_size; t++) {
|
||||||
if (IsTileType(t, MP_WATER) && IsShipDepot(t)) {
|
if (IsShipDepotTile(t)) {
|
||||||
_m[t].m4 = (TileHeight(t) == 0) ? OWNER_WATER : OWNER_NONE;
|
_m[t].m4 = (TileHeight(t) == 0) ? OWNER_WATER : OWNER_NONE;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user