diff options
author | Max Horn | 2009-09-17 16:50:53 +0000 |
---|---|---|
committer | Max Horn | 2009-09-17 16:50:53 +0000 |
commit | eb77efda785dd7df31a90fb3fd57ea17bf49a606 (patch) | |
tree | 5a31e8292859154a920a0abdf945df0cbd0e4ab4 /engines/sci/engine/kmovement.cpp | |
parent | 9651562e72ac4c73393a2aba87e835269c25210f (diff) | |
download | scummvm-rg350-eb77efda785dd7df31a90fb3fd57ea17bf49a606.tar.gz scummvm-rg350-eb77efda785dd7df31a90fb3fd57ea17bf49a606.tar.bz2 scummvm-rg350-eb77efda785dd7df31a90fb3fd57ea17bf49a606.zip |
SCI: Add a global getSciVersion() function and make use of it
svn-id: r44170
Diffstat (limited to 'engines/sci/engine/kmovement.cpp')
-rw-r--r-- | engines/sci/engine/kmovement.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/engines/sci/engine/kmovement.cpp b/engines/sci/engine/kmovement.cpp index 9f7e418c91..b9381b1383 100644 --- a/engines/sci/engine/kmovement.cpp +++ b/engines/sci/engine/kmovement.cpp @@ -276,7 +276,7 @@ static void bresenham_autodetect(EngineState *s) { } buf = s->segMan->getScript(fptr.segment)->_buf + fptr.offset; - handle_movecnt = (s->segMan->sciVersion() <= SCI_VERSION_01 || checksum_bytes(buf, 8) == 0x216) ? INCREMENT_MOVECNT : IGNORE_MOVECNT; + handle_movecnt = (getSciVersion() <= SCI_VERSION_01 || checksum_bytes(buf, 8) == 0x216) ? INCREMENT_MOVECNT : IGNORE_MOVECNT; printf("b-moveCnt action based on checksum: %s\n", handle_movecnt == IGNORE_MOVECNT ? "ignore" : "increment"); } else { warning("bresenham_autodetect failed"); |