Skip to content

Commit

Permalink
Rename TD6MaxTrackElements to kTD6MaxTrackElements
Browse files Browse the repository at this point in the history
  • Loading branch information
Harry-Hopkinson committed Jun 6, 2024
1 parent 1262ee6 commit c63efa6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/openrct2/rct2/Limits.h
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ namespace RCT2::Limits
// quad.
constexpr uint16_t kMaxResearchItems = 500;

constexpr uint16_t TD6MaxTrackElements = 8192;
constexpr uint16_t kTD6MaxTrackElements = 8192;

constexpr uint8_t MaxSmallSceneryObjects = 252;
constexpr uint8_t MaxLargeSceneryObjects = 128;
Expand Down
2 changes: 1 addition & 1 deletion src/openrct2/ride/TrackDesign.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -262,7 +262,7 @@ ResultWithMessage TrackDesign::CreateTrackDesignTrack(TrackDesignState& tds, con
trackElement.x = newCoords->x;
trackElement.y = newCoords->y;

if (track_elements.size() > RCT2::Limits::TD6MaxTrackElements)
if (track_elements.size() > RCT2::Limits::kTD6MaxTrackElements)
{
return { false, STR_TRACK_TOO_LARGE_OR_TOO_MUCH_SCENERY };
}
Expand Down

0 comments on commit c63efa6

Please sign in to comment.