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:
2
misc.c
2
misc.c
@@ -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);
|
||||
|
Reference in New Issue
Block a user