From 9e1ba97f63d5913f06a22bf58562eb1db99e5a0e Mon Sep 17 00:00:00 2001 From: Misa Date: Tue, 3 Nov 2020 22:12:58 -0800 Subject: [PATCH] Fix style of showmousecursor boolean check Same-line brace (but not previous-line brace) AND an unnecessary boolean comparison to constant boolean? Two-for-one whammy. --- desktop_version/src/Game.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/desktop_version/src/Game.cpp b/desktop_version/src/Game.cpp index 81696357..6ffe66b7 100644 --- a/desktop_version/src/Game.cpp +++ b/desktop_version/src/Game.cpp @@ -4707,11 +4707,12 @@ void Game::loadstats(int *width, int *height, bool *vsync) } - if (graphics.showmousecursor == true) + if (graphics.showmousecursor) { SDL_ShowCursor(SDL_ENABLE); } - else { + else + { SDL_ShowCursor(SDL_DISABLE); }