mirror of
https://github.com/OpenTTD/OpenTTD
synced 2026-02-02 17:11:20 +01:00
(svn r19995) [1.0] -Backport from trunk
- Fix: Owner of the Waypoint View window was not properly set (r19990) - Fix: Close list of vehicles with given oil rig in orders when the oil rig is deleted (r19956) - Fix: Close list of vehicles with given buoy/oil rig in orders when switching company (r19955) - Fix: Do not close list of waypoint's trains when the waypoint view is closed when it is sticky (r19952) - Fix: Close buoy's vehicle list when the buoy is deleted [FS#3869] (r19951) -Prepare: for 1.0.2
This commit is contained in:
@@ -1245,7 +1245,12 @@ static WindowDesc _vehicle_list_desc(
|
||||
|
||||
static void ShowVehicleListWindowLocal(CompanyID company, uint16 VLW_flag, VehicleType vehicle_type, uint16 unique_number)
|
||||
{
|
||||
if (!Company::IsValidID(company)) return;
|
||||
if (!Company::IsValidID(company)) {
|
||||
_vehicle_list_desc.flags |= WDF_CONSTRUCTION;
|
||||
company = _local_company;
|
||||
} else {
|
||||
_vehicle_list_desc.flags &= ~WDF_CONSTRUCTION;
|
||||
}
|
||||
|
||||
_vehicle_list_desc.cls = GetWindowClassForVehicleType(vehicle_type);
|
||||
WindowNumber num = (unique_number << 16) | (vehicle_type << 11) | VLW_flag | company;
|
||||
|
||||
Reference in New Issue
Block a user