mirror of https://github.com/OpenTTD/OpenTTD
(svn r11974) -Fix [FS#1684]: Shore and sea tiles under bridges were converted to canals in old savegames.
parent
79aa7247c0
commit
da754951f1
|
@ -1710,7 +1710,15 @@ bool AfterLoadGame()
|
||||||
if (GB(_m[t].m5, 3, 2) == 0) {
|
if (GB(_m[t].m5, 3, 2) == 0) {
|
||||||
MakeClear(t, CLEAR_GRASS, 3);
|
MakeClear(t, CLEAR_GRASS, 3);
|
||||||
} else {
|
} else {
|
||||||
MakeCanal(t, (GetTileOwner(t) == OWNER_WATER) ? OWNER_NONE : GetTileOwner(t), Random());
|
if (GetTileSlope(t, NULL) != SLOPE_FLAT) {
|
||||||
|
MakeShore(t);
|
||||||
|
} else {
|
||||||
|
if (GetTileOwner(t) == OWNER_WATER) {
|
||||||
|
MakeWater(t);
|
||||||
|
} else {
|
||||||
|
MakeCanal(t, GetTileOwner(t), Random());
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
SetBridgeMiddle(t, axis);
|
SetBridgeMiddle(t, axis);
|
||||||
|
|
Loading…
Reference in New Issue