aboutsummaryrefslogtreecommitdiff
path: root/engines/kyra/staticres.cpp
diff options
context:
space:
mode:
authorJohannes Schickel2010-10-22 02:11:00 +0000
committerJohannes Schickel2010-10-22 02:11:00 +0000
commit5ff20cb12d26b80e0e23a5dab734412d24fa0289 (patch)
treeeb7de7ca2d0f5e53977adf6c984f57ce8ea41598 /engines/kyra/staticres.cpp
parent03e2d54ca7f3d5533cbae376921cf617736caee5 (diff)
downloadscummvm-rg350-5ff20cb12d26b80e0e23a5dab734412d24fa0289.tar.gz
scummvm-rg350-5ff20cb12d26b80e0e23a5dab734412d24fa0289.tar.bz2
scummvm-rg350-5ff20cb12d26b80e0e23a5dab734412d24fa0289.zip
KYRA: Cleanup.
svn-id: r53698
Diffstat (limited to 'engines/kyra/staticres.cpp')
-rw-r--r--engines/kyra/staticres.cpp11
1 files changed, 1 insertions, 10 deletions
diff --git a/engines/kyra/staticres.cpp b/engines/kyra/staticres.cpp
index 7906dc07dc..c55ee57214 100644
--- a/engines/kyra/staticres.cpp
+++ b/engines/kyra/staticres.cpp
@@ -912,16 +912,7 @@ void KyraEngine_LoK::loadItems() {
_shapes[216 + i] = _screen->encodeShape( (i % 20) * 16, i/20 * 16, 16, 16, 0);
}
- uint32 size;
- uint8 *fileData = _res->fileData("_ITEM_HT.DAT", &size);
- assert(fileData);
-
- for (int i = 0; i < 107; i++) {
- _itemTable[i].height = fileData[i];
- _itemTable[i].unk1 = _itemTable[i].unk2 = 0;
- }
-
- delete[] fileData;
+ _res->loadFileToBuf("_ITEM_HT.DAT", &_itemHtDat, sizeof(_itemHtDat));
}
void KyraEngine_LoK::loadButtonShapes() {