[Scummvm-cvs-logs] CVS: scummvm/scumm script_v5.cpp,1.119,1.120
Max Horn
fingolfin at users.sourceforge.net
Wed Jun 18 05:34:11 CEST 2003
Update of /cvsroot/scummvm/scummvm/scumm
In directory sc8-pr-cvs1:/tmp/cvs-serv16300
Modified Files:
script_v5.cpp
Log Message:
fix for o5_walkActorToActor; this seems to be more like what V3 games expect (and fixes bug #755113); but I don't know for sure about V5 games (and I have to wonder if the corresponding code for V6 isn't maybe wrong, too...?)
Index: script_v5.cpp
===================================================================
RCS file: /cvsroot/scummvm/scummvm/scumm/script_v5.cpp,v
retrieving revision 1.119
retrieving revision 1.120
diff -u -d -r1.119 -r1.120
--- script_v5.cpp 14 Jun 2003 18:52:29 -0000 1.119
+++ script_v5.cpp 18 Jun 2003 12:33:46 -0000 1.120
@@ -2413,8 +2413,8 @@
if (_version <= 2)
dist *= 8;
else if (dist == 0xFF) {
- dist = a2->scalex * a2->width / 0xFF;
- dist += dist / 2;
+ dist = a->scalex * a->width / 0xFF;
+ dist += (a2->scalex * a2->width / 0xFF) / 2;
}
x = a2->x;
y = a2->y;
More information about the Scummvm-git-logs
mailing list