aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
authorArnaud Boutonné2010-12-15 07:35:20 +0000
committerArnaud Boutonné2010-12-15 07:35:20 +0000
commitf05f5348b7d6da6404a29d6a6f6b4452ffd5735b (patch)
tree7297c1aaf47d0a69413ebcfe6ed34776fc22a439 /engines
parentf2205a5a01805af76d3c85d7870a61eb76c6bbce (diff)
downloadscummvm-rg350-f05f5348b7d6da6404a29d6a6f6b4452ffd5735b.tar.gz
scummvm-rg350-f05f5348b7d6da6404a29d6a6f6b4452ffd5735b.tar.bz2
scummvm-rg350-f05f5348b7d6da6404a29d6a6f6b4452ffd5735b.zip
HUGO: No longer shift down inventory by 8 pixels
svn-id: r54920
Diffstat (limited to 'engines')
-rw-r--r--engines/hugo/game.h2
-rw-r--r--engines/hugo/inventory.cpp2
2 files changed, 2 insertions, 2 deletions
diff --git a/engines/hugo/game.h b/engines/hugo/game.h
index b0bfe82e0b..488f667bee 100644
--- a/engines/hugo/game.h
+++ b/engines/hugo/game.h
@@ -66,7 +66,7 @@ namespace Hugo {
#define VIEW_DY 184 // Height of window view
#define INV_DX 32 // Width of an inventory icon
#define INV_DY 32 // Height of inventory icon
-#define DIBOFF_Y 8 // Offset into dib SrcY (old status line area)
+#define DIBOFF_Y 0 // Offset into dib SrcY (old status line area). In original game: 8
#define OVL_SIZE (XBYTES * YPIX) // Size of an overlay file
#define MAX_SEQUENCES 4 // Number of sequences of images in object
#define MAX_CHARS (XBYTES - 2) // Max length of user input line
diff --git a/engines/hugo/inventory.cpp b/engines/hugo/inventory.cpp
index 43a05d1d86..19995d3650 100644
--- a/engines/hugo/inventory.cpp
+++ b/engines/hugo/inventory.cpp
@@ -207,7 +207,7 @@ void InventoryHandler::runInventory() {
}
gameStatus.inventoryHeight += STEP_DY; // Move the icon bar down
- if (gameStatus.inventoryHeight >= INV_DY) // Limit travel
+ if (gameStatus.inventoryHeight > INV_DY) // Limit travel
gameStatus.inventoryHeight = INV_DY;
// Move visible portion to _frontBuffer, display results