aboutsummaryrefslogtreecommitdiff
path: root/engines/sci/engine/kmovement.cpp
diff options
context:
space:
mode:
authorFilippos Karapetis2009-05-31 02:37:24 +0000
committerFilippos Karapetis2009-05-31 02:37:24 +0000
commita4d13cef8c48eecb1f73f2d509437261a663ab05 (patch)
treeb4cbf2d09a3a7fb78f982168a513e63e790b8f78 /engines/sci/engine/kmovement.cpp
parent896df6daf337bf83f27193918eb386321c4b0166 (diff)
downloadscummvm-rg350-a4d13cef8c48eecb1f73f2d509437261a663ab05.tar.gz
scummvm-rg350-a4d13cef8c48eecb1f73f2d509437261a663ab05.tar.bz2
scummvm-rg350-a4d13cef8c48eecb1f73f2d509437261a663ab05.zip
More objectification of the Vocabulary functions
svn-id: r41057
Diffstat (limited to 'engines/sci/engine/kmovement.cpp')
-rw-r--r--engines/sci/engine/kmovement.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/engines/sci/engine/kmovement.cpp b/engines/sci/engine/kmovement.cpp
index 9b62792073..0410d36974 100644
--- a/engines/sci/engine/kmovement.cpp
+++ b/engines/sci/engine/kmovement.cpp
@@ -462,7 +462,7 @@ static void bresenham_autodetect(EngineState *s) {
return;
}
- if (lookup_selector(s, motion_class, s->selector_map.doit, NULL, &fptr) != kSelectorMethod) {
+ if (lookup_selector(s, motion_class, s->_vocabulary->_selectorMap.doit, NULL, &fptr) != kSelectorMethod) {
warning("bresenham_autodetect failed");
handle_movecnt = INCREMENT_MOVECNT; // Most games do this, so best guess
return;
@@ -557,7 +557,7 @@ reg_t kDoBresen(EngineState *s, int funct_nr, int argc, reg_t *argv) {
debugC(2, kDebugLevelBresen, "New data: (x,y)=(%d,%d), di=%d\n", x, y, bdi);
- if (s->selector_map.cantBeHere != -1)
+ if (s->_vocabulary->_selectorMap.cantBeHere != -1)
invoke_selector(INV_SEL(client, cantBeHere, 0), 0);
else
invoke_selector(INV_SEL(client, canBeHere, 0), 0);