From 90da6c5e6c6adc20ff238a292c505bd0cd32b91c Mon Sep 17 00:00:00 2001 From: uruk Date: Fri, 23 Aug 2013 14:56:56 +0200 Subject: AVALANCHE: Repair Acci::do_that(), Gyro::getname(), Lucerna::find_people(), triptype::walkto(). --- engines/avalanche/trip6.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'engines/avalanche/trip6.cpp') 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; -- cgit v1.2.3