forked from mirror/OpenTTD
(svn r6141) -Codechange: introduced DepotID and used it as much as possible
-Codechange: DeleteDepot removes a depot from the pool -Codechange: DestroyDepot is called by DeleteDepot to remove all things where a depot depends on. Last 2 changes to prepare for new pool system. Not pretty now, will be soon. -Codechange: Removed DoDeleteDepot as it was stupid
This commit is contained in:
@@ -103,7 +103,7 @@ static int32 RemoveShipDepot(TileIndex tile, uint32 flags)
|
||||
|
||||
if (flags & DC_EXEC) {
|
||||
/* Kill the depot, which is registered at the northernmost tile. Use that one */
|
||||
DoDeleteDepot(tile2 < tile ? tile2 : tile);
|
||||
DeleteDepot(GetDepotByTile(tile2 < tile ? tile2 : tile));
|
||||
|
||||
MakeWater(tile);
|
||||
MakeWater(tile2);
|
||||
|
Reference in New Issue
Block a user