[Scummvm-cvs-logs] CVS: scummvm/scumm script_v6.cpp,1.86,1.87
Pawel Kolodziejski
aquadran at users.sourceforge.net
Sun Mar 30 04:35:20 CEST 2003
Update of /cvsroot/scummvm/scummvm/scumm
In directory sc8-pr-cvs1:/tmp/cvs-serv15302
Modified Files:
script_v6.cpp
Log Message:
fixed cordinates in the Dig opcode 0xE1
Index: script_v6.cpp
===================================================================
RCS file: /cvsroot/scummvm/scummvm/scumm/script_v6.cpp,v
retrieving revision 1.86
retrieving revision 1.87
diff -u -d -r1.86 -r1.87
--- script_v6.cpp 30 Mar 2003 11:04:11 -0000 1.86
+++ script_v6.cpp 30 Mar 2003 12:34:36 -0000 1.87
@@ -2924,8 +2924,8 @@
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 @@
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);
More information about the Scummvm-git-logs
mailing list