mirror of https://github.com/OpenRCT2/OpenRCT2.git
Part of #21421: rename MAX_VIEWPORT_COUNT to kMaxViewportCount
This commit is contained in:
parent
af46ff5f0a
commit
5837a33a60
|
@ -177,7 +177,7 @@ CoordsXYZ Focus::GetPos() const
|
|||
void ViewportCreate(WindowBase* w, const ScreenCoordsXY& screenCoords, int32_t width, int32_t height, const Focus& focus)
|
||||
{
|
||||
Viewport* viewport = nullptr;
|
||||
if (_viewports.size() >= MAX_VIEWPORT_COUNT)
|
||||
if (_viewports.size() >= kMaxViewportCount)
|
||||
{
|
||||
LOG_ERROR("No more viewport slots left to allocate.");
|
||||
return;
|
||||
|
|
|
@ -114,7 +114,7 @@ struct InteractionInfo
|
|||
ViewportInteractionItem SpriteType = ViewportInteractionItem::None;
|
||||
};
|
||||
|
||||
#define MAX_VIEWPORT_COUNT WINDOW_LIMIT_MAX
|
||||
constexpr int32_t kMaxViewportCount = WINDOW_LIMIT_MAX;
|
||||
|
||||
/**
|
||||
* A reference counter for whether something is forcing the grid lines to show. When the counter
|
||||
|
|
Loading…
Reference in New Issue