From 70edbd9eb40f7f36b1bd5a55909d21ca54d10f41 Mon Sep 17 00:00:00 2001 From: Bjørn Lindeijer Date: Sat, 25 Dec 2004 22:49:47 +0000 Subject: Fix forgotten commit and increased static inventory size to 100 for now. --- src/game.cpp | 2 +- src/gui/inventory.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'src') 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 -- cgit v1.2.3-60-g2f50