summaryrefslogtreecommitdiff
path: root/src/game.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/game.cpp')
-rw-r--r--src/game.cpp10
1 files changed, 9 insertions, 1 deletions
diff --git a/src/game.cpp b/src/game.cpp
index 3b4a4420..206da15e 100644
--- a/src/game.cpp
+++ b/src/game.cpp
@@ -231,7 +231,15 @@ void do_input()
if (keysym.sym == SDLK_F1)
{
- new HelpWindow();
+ if (helpWindow->isVisible())
+ {
+ helpWindow->setVisible(false);
+ }
+ else
+ {
+ helpWindow->loadHelp("index");
+ }
+ used = true;
}
if (keysym.sym == SDLK_RETURN)