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

Merge pull request #25109 from matheusvb3/clean-cheats

Remove redundant braces in Cheats.cpp
This commit is contained in:
matheusvb3
2025-09-06 15:32:10 -03:00
committed by GitHub
parent 8746d7627a
commit 353f444057

View File

@@ -647,22 +647,17 @@ static StringId window_cheats_page_titles[] = {
}
else if (page == WINDOW_CHEATS_PAGE_PARK)
{
{
auto ft = Formatter();
ft.Add<int32_t>(_parkRatingSpinnerValue);
auto ft = Formatter();
ft.Add<int32_t>(_parkRatingSpinnerValue);
auto& widget = widgets[WIDX_PARK_RATING_SPINNER];
DrawTextBasic(
rt, windowPos + ScreenCoordsXY{ widget.left + 1, widget.top + 2 }, STR_FORMAT_INTEGER, ft,
{ colours[1] });
}
auto& widget = widgets[WIDX_PARK_RATING_SPINNER];
DrawTextBasic(
rt, windowPos + ScreenCoordsXY{ widget.left + 1, widget.top + 2 }, STR_FORMAT_INTEGER, ft, { colours[1] });
}
else if (page == WINDOW_CHEATS_PAGE_STAFF)
{
{
auto& widget = widgets[WIDX_STAFF_SPEED];
DrawTextBasic(rt, windowPos + ScreenCoordsXY{ _xLcol - 3, widget.top + 1 }, STR_CHEAT_STAFF_SPEED);
}
auto& widget = widgets[WIDX_STAFF_SPEED];
DrawTextBasic(rt, windowPos + ScreenCoordsXY{ _xLcol - 3, widget.top + 1 }, STR_CHEAT_STAFF_SPEED);
}
else if (page == WINDOW_CHEATS_PAGE_GUESTS)
{
@@ -703,10 +698,8 @@ static StringId window_cheats_page_titles[] = {
}
else if (page == WINDOW_CHEATS_PAGE_WEATHER)
{
{
auto& widget = widgets[WIDX_WEATHER];
DrawTextBasic(rt, windowPos + ScreenCoordsXY{ _xLcol - 3, widget.top + 1 }, STR_CHANGE_WEATHER);
}
auto& widget = widgets[WIDX_WEATHER];
DrawTextBasic(rt, windowPos + ScreenCoordsXY{ _xLcol - 3, widget.top + 1 }, STR_CHANGE_WEATHER);
}
}