diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/game.cpp | 2 | ||||
-rw-r--r-- | src/gui/inventory.h | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/game.cpp b/src/game.cpp index c5cc2a48..b1449cb6 100644 --- a/src/game.cpp +++ b/src/game.cpp @@ -284,7 +284,7 @@ void do_input() { show_skill_dialog = !show_skill_dialog; action_time = false; } else if(key[KEY_I]) { - inventory.toggle(); + inventory.setVisible(!inventory.isVisible()); action_time = false; } else if(key[KEY_K]) { show_skill_list_dialog = !show_skill_dialog; diff --git a/src/gui/inventory.h b/src/gui/inventory.h index 29c61c72..a83a1f80 100644 --- a/src/gui/inventory.h +++ b/src/gui/inventory.h @@ -33,7 +33,7 @@ #include "../net/network.h" #include "gui.h" -#define INVENTORY_SIZE 10 +#define INVENTORY_SIZE 100 struct itemHolder { // the holder of a item int id; // the id of the item |