(svn r6513) -Codechange: unified the code to draw depot windows
This change is intended to make it easier to make depot behaviour consistent and faster to code when adding more features in the future The user interface should hopefully not be affected by this
This commit is contained in:
@@ -716,14 +716,12 @@ static uint32 GetTileTrackStatus_Water(TileIndex tile, TransportType mode)
|
||||
return ts * 0x101;
|
||||
}
|
||||
|
||||
extern void ShowShipDepotWindow(TileIndex tile);
|
||||
|
||||
static void ClickTile_Water(TileIndex tile)
|
||||
{
|
||||
if (GetWaterTileType(tile) == WATER_DEPOT) {
|
||||
TileIndex tile2 = GetOtherShipDepotTile(tile);
|
||||
|
||||
ShowShipDepotWindow(tile < tile2 ? tile : tile2);
|
||||
ShowDepotWindow(tile < tile2 ? tile : tile2, VEH_Ship);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user