summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorglx <glx@openttd.org>2007-10-16 20:44:59 +0000
committerglx <glx@openttd.org>2007-10-16 20:44:59 +0000
commit389391f9ece8776a7148dcda3f404c7e8a627c00 (patch)
tree56f19e93fe0a3a21de5f1e97bb55247ca86f941f
parent3bcfe14cd1bd6aa2f400074c2b3084f2d5c841cd (diff)
downloadopenttd-389391f9ece8776a7148dcda3f404c7e8a627c00.tar.xz
(svn r11277) -Fix (r8498): the check for ghost station (on water industries) always removed station for non-oilrig
-rw-r--r--src/openttd.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/openttd.cpp b/src/openttd.cpp
index af3360b78..64322adf7 100644
--- a/src/openttd.cpp
+++ b/src/openttd.cpp
@@ -1448,9 +1448,9 @@ bool AfterLoadGame()
* an oil rig which got shut down, but not completly removed from
* the map
*/
- TileIndex t1 = TILE_ADDXY(t, 1, 0);
+ TileIndex t1 = TILE_ADDXY(t, 0, 1);
if (IsTileType(t1, MP_INDUSTRY) &&
- GetIndustryGfx(t1) == GFX_OILRIG_3) {
+ GetIndustryGfx(t1) == GFX_OILRIG_1) {
/* The internal encoding of oil rigs was changed twice.
* It was 3 (till 2.2) and later 5 (till 5.1).
* Setting it unconditionally does not hurt.