diff options
author | José Ávila <linux@javila.net> | 2005-06-03 06:18:17 +0000 |
---|---|---|
committer | José Ávila <linux@javila.net> | 2005-06-03 06:18:17 +0000 |
commit | f73656a5f854bbde8aaf727c09d31a9215b1e041 (patch) | |
tree | b83c18c82c62873ab34d854a4b3ab8ff10ba0c38 /src/game.cpp | |
parent | f4bab20b13d4b11522171b21b35d26ee43727206 (diff) | |
download | mana-f73656a5f854bbde8aaf727c09d31a9215b1e041.tar.gz mana-f73656a5f854bbde8aaf727c09d31a9215b1e041.tar.bz2 mana-f73656a5f854bbde8aaf727c09d31a9215b1e041.tar.xz mana-f73656a5f854bbde8aaf727c09d31a9215b1e041.zip |
Modification in help system
Diffstat (limited to 'src/game.cpp')
-rw-r--r-- | src/game.cpp | 10 |
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) |