aboutsummaryrefslogtreecommitdiff
path: root/scumm/script_v6.cpp
diff options
context:
space:
mode:
authorPaweł Kołodziejski2003-03-30 12:34:36 +0000
committerPaweł Kołodziejski2003-03-30 12:34:36 +0000
commit6c9b798611976ead9ec2d947c819725c27c10a66 (patch)
tree9d8e9b5d4356853eb277e54609b8545d2c3b1953 /scumm/script_v6.cpp
parent2d55c999975dd8c14e882b205c75eebfb09f3711 (diff)
downloadscummvm-rg350-6c9b798611976ead9ec2d947c819725c27c10a66.tar.gz
scummvm-rg350-6c9b798611976ead9ec2d947c819725c27c10a66.tar.bz2
scummvm-rg350-6c9b798611976ead9ec2d947c819725c27c10a66.zip
fixed cordinates in the Dig opcode 0xE1
svn-id: r6886
Diffstat (limited to 'scumm/script_v6.cpp')
-rw-r--r--scumm/script_v6.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/scumm/script_v6.cpp b/scumm/script_v6.cpp
index b03fb8d62d..8fcf3bc078 100644
--- a/scumm/script_v6.cpp
+++ b/scumm/script_v6.cpp
@@ -2924,8 +2924,8 @@ void Scumm_v6::o6_getDateTime() {
void Scumm_v6::o6_unknownE1() {
// this opcode check ground area in minigame "Asteroid Lander" in the dig
- int x = pop();
int y = pop();
+ int x = pop();
if (x > _realWidth - 1) {
push(-1);
@@ -2948,7 +2948,6 @@ void Scumm_v6::o6_unknownE1() {
return;
}
- // FIXME: something is wrong, it take wrong position or wrong buffer check
int offset = (y - vs->topline) * _realWidth + x + _screenLeft;
byte area = *(getResourceAddress(rtBuffer, vs->number + 1) + offset);