aboutsummaryrefslogtreecommitdiff
path: root/engines/sci/engine/kmovement.cpp
diff options
context:
space:
mode:
authorFilippos Karapetis2009-08-17 05:55:21 +0000
committerFilippos Karapetis2009-08-17 05:55:21 +0000
commitc38f58598bfc35aa6c1a413e6f1369d5f09ca819 (patch)
tree08a6f03f0b7a1a364d4180e84ff97b1c0b26000c /engines/sci/engine/kmovement.cpp
parent0d4fc8169879e0ec476b45fa58601d69e6e0db3c (diff)
downloadscummvm-rg350-c38f58598bfc35aa6c1a413e6f1369d5f09ca819.tar.gz
scummvm-rg350-c38f58598bfc35aa6c1a413e6f1369d5f09ca819.tar.bz2
scummvm-rg350-c38f58598bfc35aa6c1a413e6f1369d5f09ca819.zip
- Simplified some functions to accept only the parts of the EngineState they need as parameters, instead of the whole EngineState
- Moved the class table in the Segment manager - it's the only class using it directly - Removed the sci11 flag from save games (we already know this, we don't need to store it) - Moved script_get_segment() and get_class_address() inside the segment manager class - Removed the script_locate_by_segment wrapper - Simplified script_lookup_export() a lot by removing some paranoia checks - Added some WIP code for automatically determining the game id in the fallback detector (still not working) - General cleanup svn-id: r43458
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 7433324a70..58dc3b73f1 100644
--- a/engines/sci/engine/kmovement.cpp
+++ b/engines/sci/engine/kmovement.cpp
@@ -257,7 +257,7 @@ static void bresenham_autodetect(EngineState *s) {
reg_t motion_class;
if (!parse_reg_t(s, "?Motion", &motion_class)) {
- Object *obj = obj_get(s, motion_class);
+ Object *obj = obj_get(s->seg_manager, s->_version, motion_class);
reg_t fptr;
byte *buf;