aboutsummaryrefslogtreecommitdiff
path: root/engines/parallaction/inventory.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'engines/parallaction/inventory.cpp')
-rw-r--r--engines/parallaction/inventory.cpp17
1 files changed, 3 insertions, 14 deletions
diff --git a/engines/parallaction/inventory.cpp b/engines/parallaction/inventory.cpp
index c43f13e44b..d3e046ff2e 100644
--- a/engines/parallaction/inventory.cpp
+++ b/engines/parallaction/inventory.cpp
@@ -22,6 +22,7 @@
#include "parallaction/parallaction.h"
+#include "parallaction/disk.h"
#include "parallaction/zone.h"
#include "parallaction/graphics.h"
#include "parallaction/inventory.h"
@@ -368,22 +369,10 @@ void cleanInventory() {
}
-// loads character's icons set
-void loadCharacterItems(const char *character) {
-
- if (!scumm_strnicmp("mini", character, 4)) character += 4;
-
- char filename[PATH_LEN];
- sprintf(filename, "%sobj", character);
-
- _vm->_graphics->loadExternalCnv(filename, &_characterInventory);
-
- return;
-}
void refreshInventory(const char *character) {
- loadCharacterItems(character);
+ openObjects(character, &_characterInventory);
redrawInventory();
_vm->_graphics->freeCnv(&_characterInventory);
@@ -392,7 +381,7 @@ void refreshInventory(const char *character) {
void refreshInventoryItem(const char *character, uint16 index) {
- loadCharacterItems(character);
+ openObjects(character, &_characterInventory);
drawInventoryItem(index, &_inventory[index]);
_vm->_graphics->freeCnv(&_characterInventory);