1
0
mirror of https://github.com/OpenTTD/OpenTTD.git synced 2025-08-13 01:29:10 +00:00

(svn r1783) -Add: Dynamic vehicles (now up to 64k of vehicles)

This commit is contained in:
truelight
2005-02-04 13:23:29 +00:00
parent 88ebe22d8b
commit 42f98c7eec
7 changed files with 94 additions and 58 deletions

2
misc.c
View File

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