diff options
author | uruk | 2013-08-23 14:56:56 +0200 |
---|---|---|
committer | uruk | 2013-08-23 14:56:56 +0200 |
commit | 90da6c5e6c6adc20ff238a292c505bd0cd32b91c (patch) | |
tree | d806c4dc0fda3e164af10a77124286708cebfa6c /engines/avalanche/trip6.cpp | |
parent | 457d898ff3a5fe5ee156a6d03be49b144cab551e (diff) | |
download | scummvm-rg350-90da6c5e6c6adc20ff238a292c505bd0cd32b91c.tar.gz scummvm-rg350-90da6c5e6c6adc20ff238a292c505bd0cd32b91c.tar.bz2 scummvm-rg350-90da6c5e6c6adc20ff238a292c505bd0cd32b91c.zip |
AVALANCHE: Repair Acci::do_that(), Gyro::getname(), Lucerna::find_people(), triptype::walkto().
Diffstat (limited to 'engines/avalanche/trip6.cpp')
-rw-r--r-- | engines/avalanche/trip6.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/engines/avalanche/trip6.cpp b/engines/avalanche/trip6.cpp index 12294ba946..afbe13be1a 100644 --- a/engines/avalanche/trip6.cpp +++ b/engines/avalanche/trip6.cpp @@ -284,6 +284,7 @@ int8 triptype::sgn(int16 x) { } void triptype::walkto(byte pednum) { + pednum--; // Pascal -> C conversion: different array indexes. speed(sgn(_tr->_vm->_gyro->peds[pednum].x - x) * 4, sgn(_tr->_vm->_gyro->peds[pednum].y - y)); hx = _tr->_vm->_gyro->peds[pednum].x - _info.xl / 2; hy = _tr->_vm->_gyro->peds[pednum].y - _info.yl; |