mirror of
https://github.com/OpenRCT2/OpenRCT2
synced 2025-12-19 22:02:57 +01:00
Apply suggestions from code review
Co-authored-by: Aaron van Geffen <aaron@aaronweb.net>
This commit is contained in:
committed by
Aaron van Geffen
parent
ac8dce44fd
commit
6d13f7ba68
@@ -1023,7 +1023,7 @@ static void shortcut_decrease_element_height()
|
|||||||
|
|
||||||
static void shortcut_toggle_clearance_checks()
|
static void shortcut_toggle_clearance_checks()
|
||||||
{
|
{
|
||||||
auto setCheatAction = SetCheatAction(CheatType::DisableClearanceChecks, gCheatsDisableClearanceChecks == 0 ? 1 : 0);
|
auto setCheatAction = SetCheatAction(CheatType::DisableClearanceChecks, gCheatsDisableClearanceChecks ? 1 : 0);
|
||||||
GameActions::Execute(&setCheatAction);
|
GameActions::Execute(&setCheatAction);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -889,7 +889,7 @@ static void window_top_toolbar_paint(rct_window* w, rct_drawpixelinfo* dpi)
|
|||||||
gfx_draw_sprite(dpi, imgId, x, y, 3);
|
gfx_draw_sprite(dpi, imgId, x, y, 3);
|
||||||
|
|
||||||
// Draw an overlay if clearance checks are disabled
|
// Draw an overlay if clearance checks are disabled
|
||||||
if (gCheatsDisableClearanceChecks != 0)
|
if (gCheatsDisableClearanceChecks)
|
||||||
{
|
{
|
||||||
gfx_draw_string_right(
|
gfx_draw_string_right(
|
||||||
dpi, STR_OVERLAY_CLEARANCE_CHECKS_DISABLED, nullptr, COLOUR_DARK_ORANGE | COLOUR_FLAG_OUTLINE, x + 26, y + 2);
|
dpi, STR_OVERLAY_CLEARANCE_CHECKS_DISABLED, nullptr, COLOUR_DARK_ORANGE | COLOUR_FLAG_OUTLINE, x + 26, y + 2);
|
||||||
|
|||||||
Reference in New Issue
Block a user