(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)
This commit is contained in:
truelight
2005-02-04 14:24:23 +00:00
parent c7eda1b15e
commit 99f3fe4c07
10 changed files with 26 additions and 23 deletions

View File

@@ -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);