diff options
author | Travis Howell | 2006-04-16 01:06:18 +0000 |
---|---|---|
committer | Travis Howell | 2006-04-16 01:06:18 +0000 |
commit | 426a75ad6a2fad8227628682051c101fcd21565d (patch) | |
tree | c29175efa0d2f69d9e5fcb958b3258e417617531 /engines/simon | |
parent | e83841e8c790cf79341ab95fa793613e898b16d1 (diff) | |
download | scummvm-rg350-426a75ad6a2fad8227628682051c101fcd21565d.tar.gz scummvm-rg350-426a75ad6a2fad8227628682051c101fcd21565d.tar.bz2 scummvm-rg350-426a75ad6a2fad8227628682051c101fcd21565d.zip |
Correct sign, to fix weird path finding issues in FF
svn-id: r21928
Diffstat (limited to 'engines/simon')
-rw-r--r-- | engines/simon/vga.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/engines/simon/vga.cpp b/engines/simon/vga.cpp index 188e36d68d..6d83508491 100644 --- a/engines/simon/vga.cpp +++ b/engines/simon/vga.cpp @@ -1862,7 +1862,8 @@ void SimonEngine::vc48_setPathFinder() { int16 x1, y1, x2, y2; uint pos = 0; - while (vsp->x >= readUint16Wrapper(p + 2)) { + x = vsp->x; + while (x >= (int16)readUint16Wrapper(p + 2)) { p += 2; pos++; } @@ -2426,7 +2427,7 @@ void SimonEngine::vc79_computePosNum() { uint pos = 0; int16 y = _variableArrayPtr[16]; - while (y >= readUint16Wrapper(p + 1)) { + while (y >= (int16)readUint16Wrapper(p + 1)) { p += 2; pos++; } |