From 97728357e442315962c62927032f1daa97ff107d Mon Sep 17 00:00:00 2001 From: truelight Date: Fri, 4 Feb 2005 14:24:23 +0000 Subject: (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) --- vehicle.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'vehicle.h') diff --git a/vehicle.h b/vehicle.h index 716aad77d..9e056edf9 100644 --- a/vehicle.h +++ b/vehicle.h @@ -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); -- cgit v1.2.3-54-g00ecf