summaryrefslogtreecommitdiff
path: root/train_cmd.c
diff options
context:
space:
mode:
authortruelight <truelight@openttd.org>2005-02-04 14:24:23 +0000
committertruelight <truelight@openttd.org>2005-02-04 14:24:23 +0000
commit99f3fe4c07f60416da4c9747bdc423db88211764 (patch)
tree9b5dccb928528ebebcb07c1edd681e786d4e0f9f /train_cmd.c
parentc7eda1b15e7f10a405f398dd230cb8ccff8164b8 (diff)
downloadopenttd-99f3fe4c07f60416da4c9747bdc423db88211764.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 'train_cmd.c')
-rw-r--r--train_cmd.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/train_cmd.c b/train_cmd.c
index 3f56fa801..5af4f77ab 100644
--- a/train_cmd.c
+++ b/train_cmd.c
@@ -535,7 +535,7 @@ int32 CmdBuildRailVehicle(int x, int y, uint32 flags, uint32 p1, uint32 p2)
const RailVehicleInfo *rvi;
int value,dir;
Vehicle *v, *u;
- byte unit_num;
+ UnitID unit_num;
Engine *e;
uint tile = TILE_FROM_XY(x,y);
@@ -774,7 +774,7 @@ int32 CmdMoveRailVehicle(int x, int y, uint32 flags, uint32 p1, uint32 p2)
// moving a loco to a new line?, then we need to assign a unitnumber.
if (dst == NULL && src->subtype != TS_Front_Engine && is_loco) {
- uint unit_num = GetFreeUnitNumber(VEH_Train);
+ UnitID unit_num = GetFreeUnitNumber(VEH_Train);
if (unit_num > _patches.max_trains)
return_cmd_error(STR_00E1_TOO_MANY_VEHICLES_IN_GAME);