Ticket #7998: walktoobj.txt

File walktoobj.txt, 620 bytes (added by SF/painelf, 22 years ago)

The patch

Line 
1Index: script_v2.cpp
2===================================================================
3RCS file: /cvsroot/scummvm/scummvm/script_v2.cpp,v
4retrieving revision 1.79
5diff -u -r1.79 script_v2.cpp
6--- script_v2.cpp 28 Jul 2002 01:40:24 -0000 1.79
7+++ script_v2.cpp 4 Aug 2002 02:27:29 -0000
8@@ -1355,12 +1355,16 @@
9 dist = a2->scalex * a2->width / 0xFF;
10 dist += dist >> 1;
11 }
12+
13 x = a2->x;
14- if (x < a->x)
15- x += dist;
16- else
17- x -= dist;
18- a->startWalkActor(x, a2->y, -1);
19+
20+ if (x != 0) {
21+ if (x < a->x)
22+ x += dist;
23+ else
24+ x -= dist;
25+ a->startWalkActor(x, a2->y, -1);
26+ }
27 }
28 }
29