aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
authorlukaslw2014-07-23 02:31:50 +0200
committerlukaslw2014-07-23 02:31:50 +0200
commitf81a6b47fdefb1ecd0862f234ef77a1cc7235ca9 (patch)
tree287215c22cb99fb4ba04cb691197a4d28d6521cd /engines
parent2ffc9e15239140f256a8b6a3c6fffdc134ffde12 (diff)
downloadscummvm-rg350-f81a6b47fdefb1ecd0862f234ef77a1cc7235ca9.tar.gz
scummvm-rg350-f81a6b47fdefb1ecd0862f234ef77a1cc7235ca9.tar.bz2
scummvm-rg350-f81a6b47fdefb1ecd0862f234ef77a1cc7235ca9.zip
PRINCE: makePath() update
Diffstat (limited to 'engines')
-rw-r--r--engines/prince/prince.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/engines/prince/prince.cpp b/engines/prince/prince.cpp
index 50766037fd..11c2e810c1 100644
--- a/engines/prince/prince.cpp
+++ b/engines/prince/prince.cpp
@@ -4092,10 +4092,13 @@ byte *PrinceEngine::makePath(int destX, int destY) {
if ((x1 != x2) && (y1 != y2)) {
findPoint(x1, y1, x2, y2);
+ if (x1 != _fpResult.x1 || y1 != _fpResult.y1) {
+ x1 = _fpResult.x1;
+ y1 = _fpResult.y1;
+ }
if (x2 != _fpResult.x2 || y2 != _fpResult.y2) {
x2 = _fpResult.x2;
y2 = _fpResult.y2;
- // TODO - change of x1, y1?
if (!_flags->getFlagValue(Flags::EXACTMOVE)) {
realDestX = x2 * 2;
realDestY = y2 * 2;