Codechange: rename byte to uint8_t (#12308)
This commit is contained in:
@@ -124,7 +124,7 @@ struct VehicleCache {
|
||||
uint16_t cached_max_speed; ///< Maximum speed of the consist (minimum of the max speed of all vehicles in the consist).
|
||||
uint16_t cached_cargo_age_period; ///< Number of ticks before carried cargo is aged.
|
||||
|
||||
byte cached_vis_effect; ///< Visual effect to show (see #VisualEffect)
|
||||
uint8_t cached_vis_effect; ///< Visual effect to show (see #VisualEffect)
|
||||
};
|
||||
|
||||
/** Sprite sequence for a vehicle part. */
|
||||
@@ -292,10 +292,10 @@ public:
|
||||
TimerGameCalendar::Date date_of_last_service_newgrf; ///< Last calendar date the vehicle had a service at a depot, unchanged by the date cheat to protect against unsafe NewGRF behavior.
|
||||
uint16_t reliability; ///< Reliability.
|
||||
uint16_t reliability_spd_dec; ///< Reliability decrease speed.
|
||||
byte breakdown_ctr; ///< Counter for managing breakdown events. @see Vehicle::HandleBreakdown
|
||||
byte breakdown_delay; ///< Counter for managing breakdown length.
|
||||
byte breakdowns_since_last_service; ///< Counter for the amount of breakdowns.
|
||||
byte breakdown_chance; ///< Current chance of breakdowns.
|
||||
uint8_t breakdown_ctr; ///< Counter for managing breakdown events. @see Vehicle::HandleBreakdown
|
||||
uint8_t breakdown_delay; ///< Counter for managing breakdown length.
|
||||
uint8_t breakdowns_since_last_service; ///< Counter for the amount of breakdowns.
|
||||
uint8_t breakdown_chance; ///< Current chance of breakdowns.
|
||||
|
||||
int32_t x_pos; ///< x coordinate.
|
||||
int32_t y_pos; ///< y coordinate.
|
||||
@@ -308,10 +308,10 @@ public:
|
||||
* 0xfd == custom sprite, 0xfe == custom second head sprite
|
||||
* 0xff == reserved for another custom sprite
|
||||
*/
|
||||
byte spritenum;
|
||||
byte x_extent; ///< x-extent of vehicle bounding box
|
||||
byte y_extent; ///< y-extent of vehicle bounding box
|
||||
byte z_extent; ///< z-extent of vehicle bounding box
|
||||
uint8_t spritenum;
|
||||
uint8_t x_extent; ///< x-extent of vehicle bounding box
|
||||
uint8_t y_extent; ///< y-extent of vehicle bounding box
|
||||
uint8_t z_extent; ///< z-extent of vehicle bounding box
|
||||
int8_t x_bb_offs; ///< x offset of vehicle bounding box
|
||||
int8_t y_bb_offs; ///< y offset of vehicle bounding box
|
||||
int8_t x_offs; ///< x offset for vehicle sprite
|
||||
@@ -322,31 +322,31 @@ public:
|
||||
UnitID unitnumber; ///< unit number, for display purposes only
|
||||
|
||||
uint16_t cur_speed; ///< current speed
|
||||
byte subspeed; ///< fractional speed
|
||||
byte acceleration; ///< used by train & aircraft
|
||||
uint8_t subspeed; ///< fractional speed
|
||||
uint8_t acceleration; ///< used by train & aircraft
|
||||
uint32_t motion_counter; ///< counter to occasionally play a vehicle sound.
|
||||
byte progress; ///< The percentage (if divided by 256) this vehicle already crossed the tile unit.
|
||||
uint8_t progress; ///< The percentage (if divided by 256) this vehicle already crossed the tile unit.
|
||||
|
||||
uint16_t random_bits; ///< Bits used for randomized variational spritegroups.
|
||||
byte waiting_triggers; ///< Triggers to be yet matched before rerandomizing the random bits.
|
||||
uint8_t waiting_triggers; ///< Triggers to be yet matched before rerandomizing the random bits.
|
||||
|
||||
StationID last_station_visited; ///< The last station we stopped at.
|
||||
StationID last_loading_station; ///< Last station the vehicle has stopped at and could possibly leave from with any cargo loaded.
|
||||
TimerGameTick::TickCounter last_loading_tick; ///< Last TimerGameTick::counter tick that the vehicle has stopped at a station and could possibly leave with any cargo loaded.
|
||||
|
||||
CargoID cargo_type; ///< type of cargo this vehicle is carrying
|
||||
byte cargo_subtype; ///< Used for livery refits (NewGRF variations)
|
||||
uint8_t cargo_subtype; ///< Used for livery refits (NewGRF variations)
|
||||
uint16_t cargo_cap; ///< total capacity
|
||||
uint16_t refit_cap; ///< Capacity left over from before last refit.
|
||||
VehicleCargoList cargo; ///< The cargo this vehicle is carrying
|
||||
uint16_t cargo_age_counter; ///< Ticks till cargo is aged next.
|
||||
int8_t trip_occupancy; ///< NOSAVE: Occupancy of vehicle of the current trip (updated after leaving a station).
|
||||
|
||||
byte day_counter; ///< Increased by one for each day
|
||||
byte tick_counter; ///< Increased by one for each tick
|
||||
byte running_ticks; ///< Number of ticks this vehicle was not stopped this day
|
||||
uint8_t day_counter; ///< Increased by one for each day
|
||||
uint8_t tick_counter; ///< Increased by one for each tick
|
||||
uint8_t running_ticks; ///< Number of ticks this vehicle was not stopped this day
|
||||
|
||||
byte vehstatus; ///< Status
|
||||
uint8_t vehstatus; ///< Status
|
||||
Order current_order; ///< The current order (+ status, like: loading)
|
||||
|
||||
union {
|
||||
@@ -356,7 +356,7 @@ public:
|
||||
|
||||
uint16_t load_unload_ticks; ///< Ticks to wait before starting next cycle.
|
||||
GroupID group_id; ///< Index of group Pool array
|
||||
byte subtype; ///< subtype (Filled with values from #AircraftSubType/#DisasterSubType/#EffectVehicleType/#GroundVehicleSubtypeFlags)
|
||||
uint8_t subtype; ///< subtype (Filled with values from #AircraftSubType/#DisasterSubType/#EffectVehicleType/#GroundVehicleSubtypeFlags)
|
||||
|
||||
NewGRFCache grf_cache; ///< Cache of often used calculated NewGRF values
|
||||
VehicleCache vcache; ///< Cache of often used vehicle values.
|
||||
|
||||
Reference in New Issue
Block a user