1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-06 06:32:56 +01:00

Fix #12050: scenario options initial happiness value misplaced

Fix a mistake made in PR #11984.
This commit is contained in:
TomasZilinek
2020-06-24 19:42:03 +02:00
committed by GitHub
parent cd6076b5bc
commit 4974d1a9b0

View File

@@ -1043,8 +1043,7 @@ static void window_editor_scenario_options_guests_paint(rct_window* w, rct_drawp
// Guest initial happiness value
screenCoords = w->windowPos
+ ScreenCoordsXY{ w->widgets[WIDX_GUEST_INITIAL_HAPPINESS].left + 1,
w->windowPos.y + w->widgets[WIDX_GUEST_INITIAL_HAPPINESS].top };
+ ScreenCoordsXY{ w->widgets[WIDX_GUEST_INITIAL_HAPPINESS].left + 1, w->widgets[WIDX_GUEST_INITIAL_HAPPINESS].top };
arg = (gGuestInitialHappiness * 100) / 255;
gfx_draw_string_left(dpi, STR_PERCENT_FORMAT_LABEL, &arg, COLOUR_BLACK, screenCoords);