1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-27 00:34:46 +01:00

Refactor constant notation in Limits.h

This commit is contained in:
Harry Hopkinson
2024-05-26 15:54:31 +00:00
committed by GitHub
parent d7f6baf307
commit 3c04e67ece
25 changed files with 220 additions and 218 deletions

View File

@@ -1836,12 +1836,12 @@ namespace OpenRCT2::PathFinding
* appropriate.
*/
static StationIndex GuestPathfindingSelectRandomStation(
const Guest& guest, int32_t numEntranceStations, BitSet<OpenRCT2::Limits::MaxStationsPerRide>& entranceStations)
const Guest& guest, int32_t numEntranceStations, BitSet<OpenRCT2::Limits::kMaxStationsPerRide>& entranceStations)
{
int32_t select = guest.GuestNumRides % numEntranceStations;
while (select > 0)
{
for (StationIndex::UnderlyingType i = 0; i < OpenRCT2::Limits::MaxStationsPerRide; i++)
for (StationIndex::UnderlyingType i = 0; i < OpenRCT2::Limits::kMaxStationsPerRide; i++)
{
if (entranceStations[i])
{
@@ -1851,7 +1851,7 @@ namespace OpenRCT2::PathFinding
}
}
}
for (StationIndex::UnderlyingType i = 0; i < OpenRCT2::Limits::MaxStationsPerRide; i++)
for (StationIndex::UnderlyingType i = 0; i < OpenRCT2::Limits::kMaxStationsPerRide; i++)
{
if (entranceStations[i])
{
@@ -2042,7 +2042,7 @@ namespace OpenRCT2::PathFinding
StationIndex closestStationNum = StationIndex::FromUnderlying(0);
int32_t numEntranceStations = 0;
BitSet<OpenRCT2::Limits::MaxStationsPerRide> entranceStations = {};
BitSet<OpenRCT2::Limits::kMaxStationsPerRide> entranceStations = {};
for (const auto& station : ride->GetStations())
{