aboutsummaryrefslogtreecommitdiff
path: root/engines/sci/engine/kmovement.cpp
diff options
context:
space:
mode:
authorFilippos Karapetis2009-09-25 16:15:57 +0000
committerFilippos Karapetis2009-09-25 16:15:57 +0000
commit180b3f1247e44c7167ca9578261b570357c11b7a (patch)
treeab70d91f1f3e77a47b86d1ade3b77d0b58d57743 /engines/sci/engine/kmovement.cpp
parent2fe6b329686cea10765ec87584455637ce656b47 (diff)
downloadscummvm-rg350-180b3f1247e44c7167ca9578261b570357c11b7a.tar.gz
scummvm-rg350-180b3f1247e44c7167ca9578261b570357c11b7a.tar.bz2
scummvm-rg350-180b3f1247e44c7167ca9578261b570357c11b7a.zip
Create a define for the special "signal" offset used throughout the engine, and fixed the arbitrary 0 values from commit #44294, set when some math functions do invalid calculations
svn-id: r44359
Diffstat (limited to 'engines/sci/engine/kmovement.cpp')
-rw-r--r--engines/sci/engine/kmovement.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/engines/sci/engine/kmovement.cpp b/engines/sci/engine/kmovement.cpp
index a647a84cdb..ac4a2382ad 100644
--- a/engines/sci/engine/kmovement.cpp
+++ b/engines/sci/engine/kmovement.cpp
@@ -401,7 +401,7 @@ reg_t kDoAvoider(EngineState *s, int, int argc, reg_t *argv) {
int dx, dy;
int destx, desty;
- s->r_acc = make_reg(0, -1);
+ s->r_acc = make_reg(0, SIGNAL_OFFSET);
if (!s->segMan->isHeapObject(avoider)) {
warning("DoAvoider() where avoider %04x:%04x is not an object", PRINT_REG(avoider));