Codechange: rename byte to uint8_t (#12308)
This commit is contained in:
@@ -1005,7 +1005,7 @@ found_best_track:;
|
||||
}
|
||||
|
||||
struct RoadDriveEntry {
|
||||
byte x, y;
|
||||
uint8_t x, y;
|
||||
};
|
||||
|
||||
#include "table/roadveh_movement.h"
|
||||
@@ -1066,7 +1066,7 @@ static Trackdir FollowPreviousRoadVehicle(const RoadVehicle *v, const RoadVehicl
|
||||
return _road_reverse_table[entry_dir];
|
||||
}
|
||||
|
||||
byte prev_state = prev->state;
|
||||
uint8_t prev_state = prev->state;
|
||||
Trackdir dir;
|
||||
|
||||
if (prev_state == RVSB_WORMHOLE || prev_state == RVSB_IN_DEPOT) {
|
||||
@@ -1338,7 +1338,7 @@ again:
|
||||
TileIndex old_tile = v->tile;
|
||||
|
||||
v->tile = tile;
|
||||
v->state = (byte)dir;
|
||||
v->state = (uint8_t)dir;
|
||||
v->frame = start_frame;
|
||||
RoadTramType rtt = GetRoadTramType(v->roadtype);
|
||||
if (GetRoadType(old_tile, rtt) != GetRoadType(tile, rtt)) {
|
||||
|
Reference in New Issue
Block a user