aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
authoruruk2013-07-24 21:18:51 +0200
committeruruk2013-07-24 21:18:51 +0200
commite5fb4e3866e8a23b80e99e4cce4509a362e916c3 (patch)
tree86dec043b35561b27babb807cc52f63905ec7c57 /engines
parent0beae3b95cbdd719b5778c79ee944ab2f426e7fc (diff)
downloadscummvm-rg350-e5fb4e3866e8a23b80e99e4cce4509a362e916c3.tar.gz
scummvm-rg350-e5fb4e3866e8a23b80e99e4cce4509a362e916c3.tar.bz2
scummvm-rg350-e5fb4e3866e8a23b80e99e4cce4509a362e916c3.zip
AVALANCHE: Cosmetic modifications in triptype::walk().
Diffstat (limited to 'engines')
-rw-r--r--engines/avalanche/trip6.cpp19
1 files changed, 9 insertions, 10 deletions
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;
}