diff options
author | Max Horn | 2009-09-17 13:22:00 +0000 |
---|---|---|
committer | Max Horn | 2009-09-17 13:22:00 +0000 |
commit | 730c7c964163f3db2ee9888480754a6a0236578e (patch) | |
tree | 5fba446fc924be24d1545fc73027dc72d78e5eda /engines/sci/engine/kmovement.cpp | |
parent | 364640cfd58a99a7b61f914a836c156d55a25c3c (diff) | |
download | scummvm-rg350-730c7c964163f3db2ee9888480754a6a0236578e.tar.gz scummvm-rg350-730c7c964163f3db2ee9888480754a6a0236578e.tar.bz2 scummvm-rg350-730c7c964163f3db2ee9888480754a6a0236578e.zip |
SCI: Get rid of the not_register() hack
svn-id: r44153
Diffstat (limited to 'engines/sci/engine/kmovement.cpp')
-rw-r--r-- | engines/sci/engine/kmovement.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/engines/sci/engine/kmovement.cpp b/engines/sci/engine/kmovement.cpp index 54f0f4680b..9f7e418c91 100644 --- a/engines/sci/engine/kmovement.cpp +++ b/engines/sci/engine/kmovement.cpp @@ -365,12 +365,12 @@ reg_t kDoBresen(EngineState *s, int, int argc, reg_t *argv) { debugC(2, kDebugLevelBresen, "New data: (x,y)=(%d,%d), di=%d\n", x, y, bdi); - if (((SciEngine*)g_engine)->getKernel()->_selectorCache.cantBeHere != -1) + if (((SciEngine*)g_engine)->getKernel()->_selectorCache.cantBeHere != -1) { invoke_selector(INV_SEL(client, cantBeHere, kStopOnInvalidSelector), 0); - else + s->r_acc = make_reg(0, !s->r_acc.offset); + } else { invoke_selector(INV_SEL(client, canBeHere, kStopOnInvalidSelector), 0); - - s->r_acc = not_register(s, s->r_acc); + } if (!s->r_acc.offset) { // Contains the return value signal = GET_SEL32V(client, signal); |