Changeset - r23705:5f424978d7bc
[Not reviewed]
master
0 1 0
Niels Martin Hansen - 6 years ago 2019-04-26 19:34:55
nielsm@indvikleren.dk
Fix #7481: Just remove oil rig stations right away, don't clean them first
1 file changed with 3 insertions and 10 deletions:
0 comments (0 inline, 0 general)
src/station_cmd.cpp
Show inline comments
 
@@ -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)
0 comments (0 inline, 0 general)