aboutsummaryrefslogtreecommitdiff
path: root/engines/sci/engine
diff options
context:
space:
mode:
authorMartin Kiewitz2010-07-16 10:12:31 +0000
committerMartin Kiewitz2010-07-16 10:12:31 +0000
commitb062488987ed43d10d404f91c52e502fe3c44a37 (patch)
tree6763998a5157a7e42ac7a4680e5d4f1d10f388b6 /engines/sci/engine
parent1e4261bab455a43f23d9b59736c67474a563d703 (diff)
downloadscummvm-rg350-b062488987ed43d10d404f91c52e502fe3c44a37.tar.gz
scummvm-rg350-b062488987ed43d10d404f91c52e502fe3c44a37.tar.bz2
scummvm-rg350-b062488987ed43d10d404f91c52e502fe3c44a37.zip
SCI: enable r50931 for sci1late+ only, lsl1vga doesn't like it (ego gets stuck)
svn-id: r50935
Diffstat (limited to 'engines/sci/engine')
-rw-r--r--engines/sci/engine/kmovement.cpp11
1 files changed, 4 insertions, 7 deletions
diff --git a/engines/sci/engine/kmovement.cpp b/engines/sci/engine/kmovement.cpp
index cb35aabaa9..f94750110c 100644
--- a/engines/sci/engine/kmovement.cpp
+++ b/engines/sci/engine/kmovement.cpp
@@ -267,13 +267,10 @@ reg_t kDoBresen(EngineState *s, int argc, reg_t *argv) {
bdelta = (int16)readSelectorValue(segMan, mover, SELECTOR(b_incr));
axis = (int16)readSelectorValue(segMan, mover, SELECTOR(b_xAxis));
- if ((getSciVersion() >= SCI_VERSION_1_MIDDLE)) {
- // Introduced inbetween SCI1MIDDLE, lsl5 demo doesn't have it, longbow demo has
- if (SELECTOR(xLast) != -1) {
- // save last position into mover
- writeSelectorValue(segMan, mover, SELECTOR(xLast), x);
- writeSelectorValue(segMan, mover, SELECTOR(yLast), y);
- }
+ if ((getSciVersion() >= SCI_VERSION_1_LATE)) {
+ // save last position into mover
+ writeSelectorValue(segMan, mover, SELECTOR(xLast), x);
+ writeSelectorValue(segMan, mover, SELECTOR(yLast), y);
}
//printf("movecnt %d, move speed %d\n", movcnt, max_movcnt);