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

Refactor more constants to kConstant notation

This commit is contained in:
Michael Steenbeek
2025-01-22 17:16:55 +01:00
committed by GitHub
parent b9486b9eb7
commit b0c99fcb6c
254 changed files with 1244 additions and 1249 deletions

View File

@@ -42,7 +42,7 @@ using map_animation_invalidate_event_handler = bool (*)(const CoordsXYZ& loc);
static std::vector<MapAnimation> _mapAnimations;
constexpr size_t MAX_ANIMATED_OBJECTS = 2000;
constexpr size_t kMaxAnimatedObjects = 2000;
static bool InvalidateMapAnimation(const MapAnimation& obj);
@@ -63,7 +63,7 @@ void MapAnimationCreate(int32_t type, const CoordsXYZ& loc)
{
if (!DoesAnimationExist(type, loc))
{
if (_mapAnimations.size() < MAX_ANIMATED_OBJECTS)
if (_mapAnimations.size() < kMaxAnimatedObjects)
{
// Create new animation
_mapAnimations.push_back({ static_cast<uint8_t>(type), loc });