(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:
peter1138
2007-01-09 16:27:25 +00:00
parent c600e8cec5
commit 207f7eb167
2 changed files with 17 additions and 24 deletions

View File

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