diff options
author | truelight <truelight@openttd.org> | 2005-02-04 14:24:23 +0000 |
---|---|---|
committer | truelight <truelight@openttd.org> | 2005-02-04 14:24:23 +0000 |
commit | 97728357e442315962c62927032f1daa97ff107d (patch) | |
tree | 9b5dccb928528ebebcb07c1edd681e786d4e0f9f /vehicle.h | |
parent | 7be92db76f0903c13de0100c5f9211ea8b779bfa (diff) | |
download | openttd-97728357e442315962c62927032f1daa97ff107d.tar.xz |
(svn r1786) -Fix: unitnumber is increased to 16bit, so now you can have up to 5000
trains in one game (instead of the 240 which was the current value).
Default max allowed vehicles per type is changed:
Trains: 500 (old 80)
Road: 500 (old 80)
Ships: 200 (old 40)
Aicraft: 300 (old 50)
(Tnx to Celestar and Darkvater for checking the patch)
Diffstat (limited to 'vehicle.h')
-rw-r--r-- | vehicle.h | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -100,7 +100,7 @@ struct Vehicle { StringID string_id; // Displayed string - byte unitnumber; // unit number, for display purposes only + UnitID unitnumber; // unit number, for display purposes only byte owner; // which player owns the vehicle? TileIndex tile; // Current tile index @@ -331,7 +331,7 @@ bool IsAircraftHangarTile(TileIndex tile); void ShowAircraftViewWindow(Vehicle *v); bool IsShipDepotTile(TileIndex tile); -uint GetFreeUnitNumber(byte type); +UnitID GetFreeUnitNumber(byte type); int LoadUnloadVehicle(Vehicle *v); int GetDepotByTile(uint tile); |