1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-25 15:54:31 +01:00

Use named casts on openrct2/ride (#11163)

Excluding subfolders
This commit is contained in:
Tulio Leao
2020-04-17 14:53:33 -03:00
committed by GitHub
parent 116bcb5ccb
commit b449e445f7
9 changed files with 136 additions and 125 deletions

View File

@@ -303,7 +303,7 @@ static bool sub_6DF21B_loop(Vehicle* vehicle)
uint16_t trackProgress = vehicle->track_progress - 1;
const rct_vehicle_info* moveInfo;
if ((int16_t)trackProgress == -1)
if (static_cast<int16_t>(trackProgress) == -1)
{
uint8_t trackType = vehicle->track_type >> 2;
_vehicleVAngleEndF64E36 = TrackDefinitions[trackType].vangle_start;