From e5fb4e3866e8a23b80e99e4cce4509a362e916c3 Mon Sep 17 00:00:00 2001 From: uruk Date: Wed, 24 Jul 2013 21:18:51 +0200 Subject: AVALANCHE: Cosmetic modifications in triptype::walk(). --- engines/avalanche/trip6.cpp | 19 +++++++++---------- 1 file changed, 9 insertions(+), 10 deletions(-) (limited to 'engines/avalanche') diff --git a/engines/avalanche/trip6.cpp b/engines/avalanche/trip6.cpp index 181cde8f81..e16efed2dc 100644 --- a/engines/avalanche/trip6.cpp +++ b/engines/avalanche/trip6.cpp @@ -191,14 +191,13 @@ void triptype::walk() { if (visible) { - { - r.x1 = (x / 8) - 1; - if (r.x1 == 255) - r.x1 = 0; - r.y1 = y - 2; - r.x2 = ((x + _info.xl) / 8) + 1; - r.y2 = y + _info.yl + 2; - } + r.x1 = (x / 8) - 1; + if (r.x1 == 255) + r.x1 = 0; + r.y1 = y - 2; + r.x2 = ((x + _info.xl) / 8) + 1; + r.y2 = y + _info.yl + 2; + _tr->getset[1 - _tr->_vm->_gyro->cp].remember(r); } @@ -248,9 +247,9 @@ void triptype::walk() { } if (!_tr->_vm->_gyro->doing_sprite_run) { - count += 1; + count++; if (((ix != 0) || (iy != 0)) && (count > 1)) { - step += 1; + step++; if (step == a.seq) step = 0; count = 0; } -- cgit v1.2.3