1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2025-12-22 15:23:01 +01:00

Rename WINDOW_LIMIT_RESERVED to kWindowLimitReserved

This commit is contained in:
Harry-Hopkinson
2024-04-26 15:51:20 +00:00
committed by Harry Hopkinson
parent 9e2b45fab3
commit 8ce6ba7606
3 changed files with 4 additions and 4 deletions

View File

@@ -224,8 +224,8 @@ WindowBase* WindowCreate(
}
// Check if there are any window slots left
// include WINDOW_LIMIT_RESERVED for items such as the main viewport and toolbars to not appear to be counted.
if (g_window_list.size() >= static_cast<size_t>(gConfigGeneral.WindowLimit + WINDOW_LIMIT_RESERVED))
// include kWindowLimitReserved for items such as the main viewport and toolbars to not appear to be counted.
if (g_window_list.size() >= static_cast<size_t>(gConfigGeneral.WindowLimit + kWindowLimitReserved))
{
// Close least recently used window
for (auto& w : g_window_list)