1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-19 13:03:11 +01:00

Rename field of all config categories

This commit is contained in:
Gymnasiast
2025-10-07 20:14:37 +02:00
parent a6515487a3
commit daa4fe8ac3
104 changed files with 1175 additions and 1175 deletions

View File

@@ -209,9 +209,9 @@ static constexpr float kWindowScrollLocations[][2] = {
*/
void WindowSetWindowLimit(int32_t value)
{
int32_t prev = Config::Get().general.WindowLimit;
int32_t prev = Config::Get().general.windowLimit;
int32_t val = std::clamp<int32_t>(value, kWindowLimitMin, kWindowLimitMax);
Config::Get().general.WindowLimit = val;
Config::Get().general.windowLimit = val;
Config::Save();
// Checks if value decreases and then closes surplus
// windows if one sets a limit lower than the number of windows open
@@ -455,7 +455,7 @@ static constexpr float kWindowScrollLocations[][2] = {
w.savedViewPos.y -= v->ViewHeight() / 4;
}
if (Config::Get().general.ZoomToCursor && atCursor)
if (Config::Get().general.zoomToCursor && atCursor)
{
const auto mouseCoords = ContextGetCursorPositionScaled() - v->pos;
const int32_t diffX = (mouseCoords.x - (zoomLevel.ApplyInversedTo(v->ViewWidth()) / 2));