diff options
author | Filippos Karapetis | 2009-06-07 16:50:34 +0000 |
---|---|---|
committer | Filippos Karapetis | 2009-06-07 16:50:34 +0000 |
commit | 3b687a7a04b08ab2c88b85fc265397f895b6ea6e (patch) | |
tree | 20638268c1b2be6cd468927e36d427ca2f00984b /engines/sci/engine/kmovement.cpp | |
parent | 36cdd09223aeb0b1839635e55e42131fc6834b3e (diff) | |
download | scummvm-rg350-3b687a7a04b08ab2c88b85fc265397f895b6ea6e.tar.gz scummvm-rg350-3b687a7a04b08ab2c88b85fc265397f895b6ea6e.tar.bz2 scummvm-rg350-3b687a7a04b08ab2c88b85fc265397f895b6ea6e.zip |
Replaced KP_ALT, SKPV_OR_ALT and UKPV_OR_ALT
svn-id: r41340
Diffstat (limited to 'engines/sci/engine/kmovement.cpp')
-rw-r--r-- | engines/sci/engine/kmovement.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/engines/sci/engine/kmovement.cpp b/engines/sci/engine/kmovement.cpp index 361228bedb..20a7be3aea 100644 --- a/engines/sci/engine/kmovement.cpp +++ b/engines/sci/engine/kmovement.cpp @@ -223,8 +223,9 @@ reg_t kInitBresen(EngineState *s, int funct_nr, int argc, reg_t *argv) { int deltax = GET_SEL32SV(mover, x) - GET_SEL32SV(client, x); int deltay = GET_SEL32SV(mover, y) - GET_SEL32SV(client, y); + int step_factor = (argc < 1) ? argv[1].toUint16() : 1; - initialize_bresen(s, argc, argv, mover, KP_ALT(1, make_reg(0, 1)).toUint16(), deltax, deltay); + initialize_bresen(s, argc, argv, mover, step_factor, deltax, deltay); return s->r_acc; } |