From 9c57a30ff3aedd18dba47531e8fc5abb2d6819a1 Mon Sep 17 00:00:00 2001 From: Harry-Hopkinson Date: Wed, 5 Jun 2024 20:34:32 +0000 Subject: [PATCH] Rename LL_CSG1_DAT_FileSize to kLlCsg1DatFileSize --- src/openrct2/rct1/Csg.cpp | 2 +- src/openrct2/rct1/Limits.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/openrct2/rct1/Csg.cpp b/src/openrct2/rct1/Csg.cpp index 48d4e2b220..c3342be95d 100644 --- a/src/openrct2/rct1/Csg.cpp +++ b/src/openrct2/rct1/Csg.cpp @@ -62,7 +62,7 @@ bool RCT1DataPresentAtLocation(u8string_view path) bool CsgIsUsable(const Gx& csg) { - return csg.header.total_size == RCT1::Limits::LL_CSG1_DAT_FileSize + return csg.header.total_size == RCT1::Limits::kLlCsg1DatFileSize && csg.header.num_entries == RCT1::Limits::kNumLlCsgEntries; } diff --git a/src/openrct2/rct1/Limits.h b/src/openrct2/rct1/Limits.h index 88468fa8dd..427074ea9d 100644 --- a/src/openrct2/rct1/Limits.h +++ b/src/openrct2/rct1/Limits.h @@ -22,7 +22,7 @@ namespace RCT1::Limits constexpr uint8_t kMaxBanners = 100; constexpr int32_t kCoordsZStep = 4; constexpr uint32_t kNumLlCsgEntries = 69917; - constexpr uint32_t LL_CSG1_DAT_FileSize = 41402869; + constexpr uint32_t kLlCsg1DatFileSize = 41402869; constexpr uint32_t NumTerrainSurfaces = 16; constexpr uint32_t NumTerrainEdges = 15; } // namespace RCT1::Limits