(svn r8007) -Codechange: Change _vehicle_position_hash from VehicleID to Vehicle*. This removes the need for look ups by index. Also declare the array static.
This commit is contained in:
@@ -219,7 +219,7 @@ struct Vehicle {
|
||||
int32 top_coord;
|
||||
int32 right_coord;
|
||||
int32 bottom_coord;
|
||||
VehicleID next_hash;
|
||||
Vehicle *next_hash;
|
||||
|
||||
// Related to age and service time
|
||||
Date age; // Age in days
|
||||
|
||||
Reference in New Issue
Block a user