aboutsummaryrefslogtreecommitdiff
path: root/src/screens/howToPlayScreen.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/screens/howToPlayScreen.c')
-rw-r--r--src/screens/howToPlayScreen.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/screens/howToPlayScreen.c b/src/screens/howToPlayScreen.c
index 8c31c20..ff6ccd2 100644
--- a/src/screens/howToPlayScreen.c
+++ b/src/screens/howToPlayScreen.c
@@ -16,9 +16,7 @@ void updateHowToPlayScreen(Game * game) {
ClearBackground(RAYWHITE);
// Back to main menu button.
- bool backPressed = GuiButton(howToPlayScreen->goBackButton, "back");
-
- if (backPressed)
+ if (GuiButton(howToPlayScreen->goBackButton, "Back"))
game->screenId = SCREEN_MAIN_MENU;
// Info text.