mirror of https://github.com/OpenTTD/OpenTTD
Fix #7481: Just remove oil rig stations right away, don't clean them first
parent
585c45d6c2
commit
d1ef13fc04
|
@ -4029,16 +4029,9 @@ void DeleteOilRig(TileIndex tile)
|
||||||
|
|
||||||
MakeWaterKeepingClass(tile, OWNER_NONE);
|
MakeWaterKeepingClass(tile, OWNER_NONE);
|
||||||
|
|
||||||
st->dock_tile = INVALID_TILE;
|
/* The oil rig station is not supposed to be shared with anything else */
|
||||||
st->airport.Clear();
|
assert(st->facilities == (FACIL_AIRPORT | FACIL_DOCK) && st->airport.type == AT_OILRIG);
|
||||||
st->facilities &= ~(FACIL_AIRPORT | FACIL_DOCK);
|
delete st;
|
||||||
st->airport.flags = 0;
|
|
||||||
|
|
||||||
st->rect.AfterRemoveTile(st, tile);
|
|
||||||
|
|
||||||
st->UpdateVirtCoord();
|
|
||||||
st->RecomputeCatchment();
|
|
||||||
if (!st->IsInUse()) delete st;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static void ChangeTileOwner_Station(TileIndex tile, Owner old_owner, Owner new_owner)
|
static void ChangeTileOwner_Station(TileIndex tile, Owner old_owner, Owner new_owner)
|
||||||
|
|
Loading…
Reference in New Issue