diff options
Diffstat (limited to 'src/openttd.cpp')
-rw-r--r-- | src/openttd.cpp | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/src/openttd.cpp b/src/openttd.cpp index a8fea2804..625a1b8f8 100644 --- a/src/openttd.cpp +++ b/src/openttd.cpp @@ -1302,6 +1302,19 @@ bool AfterLoadGame(void) } break; + case STATION_OILRIG: { + /* Very old savegames sometimes have phantom oil rigs, i.e. + * an oil rig which got shut down, but not completly removed from + * the map + */ + TileIndex t1 = TILE_ADDXY(t, 1, 0); + if (!IsTileType(t1, MP_INDUSTRY) || + GetIndustryGfx(t1) != GFX_OILRIG_3) { + DeleteOilRig(t); + } + break; + } + default: break; } break; |