diff options
author | Mateusz Kaduk <mateusz.kaduk@gmail.com> | 2004-12-22 10:46:24 +0000 |
---|---|---|
committer | Mateusz Kaduk <mateusz.kaduk@gmail.com> | 2004-12-22 10:46:24 +0000 |
commit | d4b405c509b6f65df32f13df0d4be9b77e3c8fac (patch) | |
tree | a07af50a6afe5e92af4322c945d8199b55ed2a3c /src/game.cpp | |
parent | d5c18a1a368766805fba12bebd4ed7bac3a68b70 (diff) | |
download | mana-d4b405c509b6f65df32f13df0d4be9b77e3c8fac.tar.gz mana-d4b405c509b6f65df32f13df0d4be9b77e3c8fac.tar.bz2 mana-d4b405c509b6f65df32f13df0d4be9b77e3c8fac.tar.xz mana-d4b405c509b6f65df32f13df0d4be9b77e3c8fac.zip |
Setup has create_setup() method that creates only one instance.
Diffstat (limited to 'src/game.cpp')
-rw-r--r-- | src/game.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/game.cpp b/src/game.cpp index 0d6e95f9..bc9377cf 100644 --- a/src/game.cpp +++ b/src/game.cpp @@ -48,6 +48,7 @@ volatile int tick_time; volatile bool refresh = false, action_time = false; int current_npc, server_tick; extern unsigned char screen_mode; +Setup *setup; #define MAX_TIME 10000 @@ -237,8 +238,9 @@ void do_input() { error(allegro_error); } - if(key[KEY_F11] && action_time==true) - create_setup(); + if(key[KEY_F9] && action_time==true) { + setup = Setup::create_setup(); + } // Emotions, Skill dialog if(key_shifts & KB_ALT_FLAG && action_time == true) { |