mirror of
https://github.com/OpenRCT2/OpenRCT2
synced 2025-12-22 23:33:04 +01:00
Rename WINDOW_LIMIT_MIN to kWindowLimitMin
This commit is contained in:
committed by
Harry Hopkinson
parent
7a1b4ce425
commit
343b10c172
@@ -194,7 +194,7 @@ static void WindowCloseSurplus(int32_t cap, WindowClass avoid_classification)
|
||||
void WindowSetWindowLimit(int32_t value)
|
||||
{
|
||||
int32_t prev = gConfigGeneral.WindowLimit;
|
||||
int32_t val = std::clamp(value, WINDOW_LIMIT_MIN, WINDOW_LIMIT_MAX);
|
||||
int32_t val = std::clamp<int32_t>(value, kWindowLimitMin, WINDOW_LIMIT_MAX);
|
||||
gConfigGeneral.WindowLimit = val;
|
||||
ConfigSaveDefault();
|
||||
// Checks if value decreases and then closes surplus
|
||||
|
||||
Reference in New Issue
Block a user