mirror of https://github.com/OpenTTD/OpenTTD
(svn r11277) -Fix (r8498): the check for ghost station (on water industries) always removed station for non-oilrig
parent
ba7c595d84
commit
28050e6e6d
|
@ -1448,9 +1448,9 @@ bool AfterLoadGame()
|
||||||
* an oil rig which got shut down, but not completly removed from
|
* an oil rig which got shut down, but not completly removed from
|
||||||
* the map
|
* the map
|
||||||
*/
|
*/
|
||||||
TileIndex t1 = TILE_ADDXY(t, 1, 0);
|
TileIndex t1 = TILE_ADDXY(t, 0, 1);
|
||||||
if (IsTileType(t1, MP_INDUSTRY) &&
|
if (IsTileType(t1, MP_INDUSTRY) &&
|
||||||
GetIndustryGfx(t1) == GFX_OILRIG_3) {
|
GetIndustryGfx(t1) == GFX_OILRIG_1) {
|
||||||
/* The internal encoding of oil rigs was changed twice.
|
/* The internal encoding of oil rigs was changed twice.
|
||||||
* It was 3 (till 2.2) and later 5 (till 5.1).
|
* It was 3 (till 2.2) and later 5 (till 5.1).
|
||||||
* Setting it unconditionally does not hurt.
|
* Setting it unconditionally does not hurt.
|
||||||
|
|
Loading…
Reference in New Issue