~ubuntu-branches/debian/squeeze/openttd/squeeze

« back to all changes in this revision

Viewing changes to src/vehicle_gui.cpp

  • Committer: Bazaar Package Importer
  • Author(s): Matthijs Kooijman
  • Date: 2010-07-01 08:14:02 UTC
  • mfrom: (1.1.12 upstream)
  • Revision ID: james.westby@ubuntu.com-20100701081402-98jmva0t3sqywxmi
Tags: 1.0.2-1
* [00c4efe] New upstream release 1.0.2.
* [c7b38fd] Break older openttd versions instead of Conflicting with
  them.
* [36bd61f] Bump standards version to 3.9.0.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/* $Id: vehicle_gui.cpp 19554 2010-04-03 20:09:19Z rubidium $ */
 
1
/* $Id: vehicle_gui.cpp 19995 2010-06-19 16:35:37Z rubidium $ */
2
2
 
3
3
/*
4
4
 * This file is part of OpenTTD.
1245
1245
 
1246
1246
static void ShowVehicleListWindowLocal(CompanyID company, uint16 VLW_flag, VehicleType vehicle_type, uint16 unique_number)
1247
1247
{
1248
 
        if (!Company::IsValidID(company)) return;
 
1248
        if (!Company::IsValidID(company)) {
 
1249
                _vehicle_list_desc.flags |= WDF_CONSTRUCTION;
 
1250
                company = _local_company;
 
1251
        } else {
 
1252
                _vehicle_list_desc.flags &= ~WDF_CONSTRUCTION;
 
1253
        }
1249
1254
 
1250
1255
        _vehicle_list_desc.cls = GetWindowClassForVehicleType(vehicle_type);
1251
1256
        WindowNumber num = (unique_number << 16) | (vehicle_type << 11) | VLW_flag | company;