aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
authorWillem Jan Palenstijn2011-02-27 14:52:13 +0100
committerWillem Jan Palenstijn2011-02-27 14:52:13 +0100
commitdb89e9a42c2fc5334a10e2efceb0d51d1646e467 (patch)
tree3d5dad3347b61437c4ed65acb9e53890fc442256 /engines
parent24a332bd22073257ae9ed33dc0549bfde4538f1b (diff)
downloadscummvm-rg350-db89e9a42c2fc5334a10e2efceb0d51d1646e467.tar.gz
scummvm-rg350-db89e9a42c2fc5334a10e2efceb0d51d1646e467.tar.bz2
scummvm-rg350-db89e9a42c2fc5334a10e2efceb0d51d1646e467.zip
SCI: Don't set b_movCnt to moveSpeed while walking
This fixes moonwalking in LSL1 and movement speed in KQ5. It appears to be have been a RE bug.
Diffstat (limited to 'engines')
-rw-r--r--engines/sci/engine/kmovement.cpp10
1 files changed, 4 insertions, 6 deletions
diff --git a/engines/sci/engine/kmovement.cpp b/engines/sci/engine/kmovement.cpp
index 3c516f63f2..76ad6cec23 100644
--- a/engines/sci/engine/kmovement.cpp
+++ b/engines/sci/engine/kmovement.cpp
@@ -388,12 +388,10 @@ reg_t kDoBresen(EngineState *s, int argc, reg_t *argv) {
return s->r_acc;
}
}
- if (handleMoveCount) {
- if (getSciVersion() <= SCI_VERSION_1_EGA)
- writeSelectorValue(segMan, mover, SELECTOR(b_movCnt), mover_moveCnt);
- else
- writeSelectorValue(segMan, mover, SELECTOR(b_movCnt), client_moveSpeed);
- }
+
+ if (handleMoveCount)
+ writeSelectorValue(segMan, mover, SELECTOR(b_movCnt), mover_moveCnt);
+
return s->r_acc;
}