equal
deleted
inserted
replaced
116 |
116 |
117 /* Cached wagon override spritegroup */ |
117 /* Cached wagon override spritegroup */ |
118 const struct SpriteGroup *cached_override; |
118 const struct SpriteGroup *cached_override; |
119 }; |
119 }; |
120 |
120 |
121 enum { |
121 enum VehicleRailFlags { |
122 VRF_REVERSING = 0, |
122 VRF_REVERSING = 0, |
123 |
123 |
124 /* used to calculate if train is going up or down */ |
124 /* used to calculate if train is going up or down */ |
125 VRF_GOINGUP = 1, |
125 VRF_GOINGUP = 1, |
126 VRF_GOINGDOWN = 2, |
126 VRF_GOINGDOWN = 2, |
134 /* used to mark train as lost because PF can't find the route */ |
134 /* used to mark train as lost because PF can't find the route */ |
135 VRF_NO_PATH_TO_DESTINATION = 5, |
135 VRF_NO_PATH_TO_DESTINATION = 5, |
136 |
136 |
137 /* used to mark that electric train engine is allowed to run on normal rail */ |
137 /* used to mark that electric train engine is allowed to run on normal rail */ |
138 VRF_EL_ENGINE_ALLOWED_NORMAL_RAIL = 6, |
138 VRF_EL_ENGINE_ALLOWED_NORMAL_RAIL = 6, |
|
139 |
|
140 /* used for vehicle var 0xFE bit 8 (toggled each time the train is reversed) */ |
|
141 VRF_TOGGLE_REVERSE = 7, |
139 }; |
142 }; |
140 |
143 |
141 struct VehicleAir { |
144 struct VehicleAir { |
142 uint16 crashed_counter; |
145 uint16 crashed_counter; |
143 uint16 cached_max_speed; |
146 uint16 cached_max_speed; |