aboutsummaryrefslogtreecommitdiff
path: root/scumm/script_v80he.cpp
diff options
context:
space:
mode:
authorMax Horn2005-05-10 14:01:54 +0000
committerMax Horn2005-05-10 14:01:54 +0000
commit249deed3b2017d3b82f7447eb74090883f69eab0 (patch)
treefbd917a0af47c20897197d803014752a26325e0a /scumm/script_v80he.cpp
parent74bc08970213a38fa22c96075dc6e75298eef080 (diff)
downloadscummvm-rg350-249deed3b2017d3b82f7447eb74090883f69eab0.tar.gz
scummvm-rg350-249deed3b2017d3b82f7447eb74090883f69eab0.tar.bz2
scummvm-rg350-249deed3b2017d3b82f7447eb74090883f69eab0.zip
Fix another mistake in the asm-to-C conversion
svn-id: r18032
Diffstat (limited to 'scumm/script_v80he.cpp')
-rw-r--r--scumm/script_v80he.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/scumm/script_v80he.cpp b/scumm/script_v80he.cpp
index ac55b75ff8..7bb5ceca86 100644
--- a/scumm/script_v80he.cpp
+++ b/scumm/script_v80he.cpp
@@ -674,7 +674,7 @@ void ScummEngine_v80he::drawLine(int x1, int y1, int x, int y, int step, int typ
if (ebx > maxDist) {
eax = 1;
- if (dx >= maxDist) {
+ if (dx >= 0) {
x++;
} else {
x--;
@@ -694,8 +694,7 @@ void ScummEngine_v80he::drawLine(int x1, int y1, int x, int y, int step, int typ
if (eax == 0)
continue;
- var_C++;
- if (((var_C - 1) % step) != 0 && maxDist != i)
+ if ((var_C++ % step) != 0 && maxDist != i)
continue;
if (type == 2) {