1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-27 16:54:52 +01:00

Fix type issues

This commit is contained in:
hdpoliveira
2020-06-14 21:18:16 -03:00
parent 23cf4b580e
commit 4ce425b436
3 changed files with 21 additions and 19 deletions

View File

@@ -1130,7 +1130,7 @@ bool track_element_is_block_start(TileElement* trackElement)
return false;
}
int32_t track_get_actual_bank(TileElement* tileElement, int32_t bank)
bank_type_t track_get_actual_bank(TileElement* tileElement, bank_type_t bank)
{
auto ride = get_ride(tileElement->AsTrack()->GetRideIndex());
if (ride != nullptr)
@@ -1141,7 +1141,7 @@ int32_t track_get_actual_bank(TileElement* tileElement, int32_t bank)
return bank;
}
int32_t track_get_actual_bank_2(int32_t rideType, bool isInverted, int32_t bank)
bank_type_t track_get_actual_bank_2(int32_t rideType, bool isInverted, bank_type_t bank)
{
if (RideTypeDescriptors[rideType].Flags & RIDE_TYPE_FLAG_HAS_ALTERNATIVE_TRACK_TYPE)
{
@@ -1160,7 +1160,7 @@ int32_t track_get_actual_bank_2(int32_t rideType, bool isInverted, int32_t bank)
return bank;
}
int32_t track_get_actual_bank_3(bool useInvertedSprites, TileElement* tileElement)
bank_type_t track_get_actual_bank_3(bool useInvertedSprites, TileElement* tileElement)
{
auto trackType = tileElement->AsTrack()->GetTrackType();
auto bankStart = TrackDefinitions[trackType].bank_start;