(svn r16394) -Codechange: move (NewGRF) cache variables into a separate struct so (some vehicle related) NewGRF cache 'desyncs' can be tested easier.
This commit is contained in:
@@ -45,7 +45,7 @@
|
||||
case VEH_ROAD: {
|
||||
uint total_length = 0;
|
||||
for (const Vehicle *u = v; u != NULL; u = u->Next()) {
|
||||
total_length += ((RoadVehicle*)u)->cached_veh_length;
|
||||
total_length += ((RoadVehicle*)u)->rcache.cached_veh_length;
|
||||
}
|
||||
return total_length;
|
||||
}
|
||||
|
Reference in New Issue
Block a user