mirror of
https://github.com/JGRennison/OpenTTD-patches.git
synced 2024-11-02 09:40:35 +00:00
(svn r14180) -Fix (r8293): close all related vehicle lists when closing a station window (and not only the train list).
This commit is contained in:
parent
ef60a4cf35
commit
e598fa4701
@ -699,10 +699,10 @@ struct StationViewWindow : public Window {
|
||||
WindowNumber wno =
|
||||
(this->window_number << 16) | VLW_STATION_LIST | GetStation(this->window_number)->owner;
|
||||
|
||||
DeleteWindowById(WC_TRAINS_LIST, wno);
|
||||
DeleteWindowById(WC_ROADVEH_LIST, wno);
|
||||
DeleteWindowById(WC_SHIPS_LIST, wno);
|
||||
DeleteWindowById(WC_AIRCRAFT_LIST, wno);
|
||||
DeleteWindowById(WC_TRAINS_LIST, wno | (VEH_TRAIN << 11));
|
||||
DeleteWindowById(WC_ROADVEH_LIST, wno | (VEH_ROAD << 11));
|
||||
DeleteWindowById(WC_SHIPS_LIST, wno | (VEH_SHIP << 11));
|
||||
DeleteWindowById(WC_AIRCRAFT_LIST, wno | (VEH_AIRCRAFT << 11));
|
||||
}
|
||||
|
||||
virtual void OnPaint()
|
||||
|
Loading…
Reference in New Issue
Block a user