diff options
author | truelight <truelight@openttd.org> | 2005-02-04 13:23:29 +0000 |
---|---|---|
committer | truelight <truelight@openttd.org> | 2005-02-04 13:23:29 +0000 |
commit | 42f98c7eec8cd46ea8452911fb4381f209de342f (patch) | |
tree | 512961ac36580ababc52512c67235f48f4bef8c8 /misc.c | |
parent | 88ebe22d8b6e844b501688673f71db3505ea2b57 (diff) | |
download | openttd-42f98c7eec8cd46ea8452911fb4381f209de342f.tar.xz |
(svn r1783) -Add: Dynamic vehicles (now up to 64k of vehicles)
Diffstat (limited to 'misc.c')
-rw-r--r-- | misc.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -604,7 +604,7 @@ void IncreaseDate(void) */ ctr = _vehicle_id_ctr_day; - for (i = 0; i != (_vehicles_size / vehicles_per_day) + 1 && ctr != _vehicles_size; i++) { + for (i = 0; i != ((uint)GetVehiclePoolSize() / vehicles_per_day) + 1 && ctr != GetVehiclePoolSize(); i++) { Vehicle *v = GetVehicle(ctr++); if ((t = v->type) != 0) _on_new_vehicle_day_proc[t - 0x10](v); |