mirror of
https://github.com/OpenRCT2/OpenRCT2
synced 2026-01-31 10:45:16 +01:00
Merge pull request #24034 from Gymnasiast/refactor/gamestate-t-lower-camel-case
Change GameState_t members to lowerCamelCase
This commit is contained in:
@@ -112,9 +112,9 @@ std::string EntitiesChecksum::ToString() const
|
||||
|
||||
EntityBase* TryGetEntity(EntityId entityIndex)
|
||||
{
|
||||
auto& gameState = GetGameState();
|
||||
auto& gameState = getGameState();
|
||||
const auto idx = entityIndex.ToUnderlying();
|
||||
return idx >= kMaxEntities ? nullptr : &gameState.Entities[idx].base;
|
||||
return idx >= kMaxEntities ? nullptr : &gameState.entities[idx].base;
|
||||
}
|
||||
|
||||
EntityBase* GetEntity(EntityId entityIndex)
|
||||
@@ -175,8 +175,8 @@ void ResetAllEntities()
|
||||
FreeEntity(*spr);
|
||||
}
|
||||
|
||||
auto& gameState = GetGameState();
|
||||
std::fill(std::begin(gameState.Entities), std::end(gameState.Entities), Entity_t());
|
||||
auto& gameState = getGameState();
|
||||
std::fill(std::begin(gameState.entities), std::end(gameState.entities), Entity_t());
|
||||
OpenRCT2::RideUse::GetHistory().Clear();
|
||||
OpenRCT2::RideUse::GetTypeHistory().Clear();
|
||||
for (int32_t i = 0; i < kMaxEntities; ++i)
|
||||
|
||||
Reference in New Issue
Block a user