diff options
author | Darkvater <darkvater@openttd.org> | 2005-05-06 16:13:44 +0000 |
---|---|---|
committer | Darkvater <darkvater@openttd.org> | 2005-05-06 16:13:44 +0000 |
commit | adf929fef5022c0b6583e9fc6fde559c71ab0fad (patch) | |
tree | a86bf470df5d0591fce0454fd971dc9dc24ad607 /vehicle.h | |
parent | 61ca460457b524d1d6b8e71d92b5b0b68f9f6281 (diff) | |
download | openttd-adf929fef5022c0b6583e9fc6fde559c71ab0fad.tar.xz |
(svn r2274) - Codechange: some comments, parentheses and EngineID typedef for engine_type
Diffstat (limited to 'vehicle.h')
-rw-r--r-- | vehicle.h | 10 |
1 files changed, 5 insertions, 5 deletions
@@ -26,9 +26,9 @@ enum VehStatus { // 1 and 3 do not appear to be used typedef enum TrainSubtypes { - TS_Front_Engine = 0, - TS_Not_First = 2, - TS_Free_Car = 4, + TS_Front_Engine = 0, // Leading engine of a train + TS_Not_First = 2, // Wagon or additional engine + TS_Free_Car = 4, // First in a wagon chain (in depot) } TrainSubtype; /* Effect vehicle types */ @@ -161,7 +161,7 @@ struct Vehicle { byte z_height; // z-height of vehicle sprite int8 x_offs; // x offset for vehicle sprite int8 y_offs; // y offset for vehicle sprite - uint16 engine_type; + EngineID engine_type; // for randomized variational spritegroups // bitmask used to resolve them; parts of it get reseeded when triggers @@ -366,7 +366,7 @@ static inline uint16 GetVehiclePoolSize(void) /** * Check if a Vehicle really exists. */ -static inline bool IsValidVehicle(Vehicle* v) +static inline bool IsValidVehicle(const Vehicle *v) { return v->type != 0; } |