aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTravis Howell2007-05-07 06:30:51 +0000
committerTravis Howell2007-05-07 06:30:51 +0000
commit8c21d430bbbb04b85123850ec2103bdb2abad89f (patch)
tree88c520221edc6705ffc2b5a73015feb779e5ad1e
parent22e022cdcbaefe4a37921941f24094ebd87c082e (diff)
downloadscummvm-rg350-8c21d430bbbb04b85123850ec2103bdb2abad89f.tar.gz
scummvm-rg350-8c21d430bbbb04b85123850ec2103bdb2abad89f.tar.bz2
scummvm-rg350-8c21d430bbbb04b85123850ec2103bdb2abad89f.zip
Fix inventory movement in Elvira 1/2 and Waxworks.
svn-id: r26773
-rw-r--r--engines/agos/icons.cpp11
1 files changed, 7 insertions, 4 deletions
diff --git a/engines/agos/icons.cpp b/engines/agos/icons.cpp
index 1fc73620be..bf72277d4a 100644
--- a/engines/agos/icons.cpp
+++ b/engines/agos/icons.cpp
@@ -396,6 +396,9 @@ void AGOSEngine::drawIconArray(uint num, Item *itemRef, int line, int classMask)
if (getGameType() == GType_SIMON2) {
width = 100;
height = 40;
+ } else if (getGameType() == GType_WW) {
+ width = window->width / 3;
+ height = window->height / 2;
} else {
width = window->width / 3;
height = window->height / 3;
@@ -446,7 +449,7 @@ void AGOSEngine::drawIconArray(uint num, Item *itemRef, int line, int classMask)
drawIcon(window, itemGetIconNumber(itemRef), x_pos, y_pos);
window->iconPtr->iconArray[k].boxCode =
setupIconHitArea(window, 0, x_pos, y_pos, itemRef);
- } else if (getGameType() == GType_SIMON1) {
+ } else if (getGameType() == GType_SIMON1 || getGameType() == GType_WW) {
drawIcon(window, itemGetIconNumber(itemRef), x_pos * 3, y_pos);
window->iconPtr->iconArray[k].boxCode =
setupIconHitArea(window, 0, x_pos * 3, y_pos, itemRef);
@@ -707,7 +710,7 @@ void AGOSEngine_Waxworks::addArrows(WindowBlock *window) {
ha->width = 9;
ha->height = 11;
ha->flags = kBFBoxInUse | kBFNoTouchName;
- ha->id = 0x7FFB;
+ ha->id = 0x7FFC;
ha->priority = 100;
ha->window = window;
ha->verb = 1;
@@ -739,7 +742,7 @@ void AGOSEngine_Elvira2::addArrows(WindowBlock *window) {
ha->width = 12;
ha->height = 10;
ha->flags = kBFBoxInUse;
- ha->id = 0x7FFB;
+ ha->id = 0x7FFC;
ha->priority = 100;
ha->window = window;
ha->verb = 1;
@@ -770,7 +773,7 @@ void AGOSEngine::addArrows(WindowBlock *window) {
ha->width = 16;
ha->height = 19;
ha->flags = kBFBoxInUse;
- ha->id = 0x7FFB;
+ ha->id = 0x7FFC;
ha->priority = 100;
ha->window = window;
ha->verb = 1;