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