aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEugene Sandulenko2005-04-09 23:13:46 +0000
committerEugene Sandulenko2005-04-09 23:13:46 +0000
commit1ec5111b984bad12b64c254476efa2d113b623d6 (patch)
treed3b31881c8e26bb2e0a5b648e56ad4c5df994b78
parente7786320a67210bbf998ff9b0f1bf227e4961432 (diff)
downloadscummvm-rg350-1ec5111b984bad12b64c254476efa2d113b623d6.tar.gz
scummvm-rg350-1ec5111b984bad12b64c254476efa2d113b623d6.tar.bz2
scummvm-rg350-1ec5111b984bad12b64c254476efa2d113b623d6.zip
Fix jumping actor glitch. Thanks to joostp.
svn-id: r17492
-rw-r--r--gob/goblin.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/gob/goblin.cpp b/gob/goblin.cpp
index 107268327f..62f65f9e92 100644
--- a/gob/goblin.cpp
+++ b/gob/goblin.cpp
@@ -2674,7 +2674,7 @@ void gob_interFunc(void) {
if (cmd == 42) {
xPos = READ_LE_UINT32(inter_variables + xPos * 4);
- yPos = READ_LE_UINT32(inter_variables + xPos * 4);
+ yPos = READ_LE_UINT32(inter_variables + yPos * 4);
item = READ_LE_UINT32(inter_variables + item * 4);
}
@@ -2825,7 +2825,7 @@ void gob_interFunc(void) {
if (cmd == 43) {
xPos = READ_LE_UINT32(inter_variables + xPos * 4);
- yPos = READ_LE_UINT32(inter_variables + xPos * 4);
+ yPos = READ_LE_UINT32(inter_variables + yPos * 4);
}
if ((map_itemsMap[yPos][xPos] & 0xff00) != 0) {