aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
authoruruk2013-07-27 10:05:09 +0200
committeruruk2013-07-27 10:05:09 +0200
commit5fe090a38c91845712635e897d7e1e3ea6983235 (patch)
tree5d313fb83e47b0b3d6d47a4e3390c4cbfba8b29a /engines
parent190e37d3f9f7b990722163df5aae247fdbe8688c (diff)
downloadscummvm-rg350-5fe090a38c91845712635e897d7e1e3ea6983235.tar.gz
scummvm-rg350-5fe090a38c91845712635e897d7e1e3ea6983235.tar.bz2
scummvm-rg350-5fe090a38c91845712635e897d7e1e3ea6983235.zip
AVALANCHE: Add comments in Graphics and Trip, repair functions in Trip.
Diffstat (limited to 'engines')
-rw-r--r--engines/avalanche/graphics.cpp2
-rw-r--r--engines/avalanche/trip6.cpp15
-rw-r--r--engines/avalanche/trip6.h2
3 files changed, 11 insertions, 8 deletions
diff --git a/engines/avalanche/graphics.cpp b/engines/avalanche/graphics.cpp
index 12b94fe175..e7fb6ea78b 100644
--- a/engines/avalanche/graphics.cpp
+++ b/engines/avalanche/graphics.cpp
@@ -103,7 +103,7 @@ void Graphics::drawSprite(const SpriteInfo &sprite, byte picnum, int16 x, int16
}
/* Then we draw the picture to the blank places. */
- uint16 i = 0; // Because the original siltype starts at 5!!! See Graph.h for definition.
+ uint16 i = 0; // Because the original siltype starts at 5!!! See Graphics.h for definition.
for (byte qay = 0; qay < sprite.yl; qay++)
for (int8 plane = 3; plane >= 0; plane--) // The planes are in the opposite way.
diff --git a/engines/avalanche/trip6.cpp b/engines/avalanche/trip6.cpp
index 8abf313082..ff3a757265 100644
--- a/engines/avalanche/trip6.cpp
+++ b/engines/avalanche/trip6.cpp
@@ -25,7 +25,7 @@
* Copyright (c) 1994-1995 Mike, Mark and Thomas Thurman.
*/
-/* TRIP5 Trippancy V */
+/* TRIP5 Trippancy V - the sprite animation subsystem */
#include "avalanche/avalanche.h"
@@ -204,7 +204,8 @@ void triptype::walk() {
if (!_tr->_vm->_gyro->doing_sprite_run) {
ox[_tr->_vm->_gyro->cp] = x;
oy[_tr->_vm->_gyro->cp] = y;
- if (homing) homestep();
+ if (homing)
+ homestep();
x = x + ix;
y = y + iy;
}
@@ -250,7 +251,8 @@ void triptype::walk() {
count++;
if (((ix != 0) || (iy != 0)) && (count > 1)) {
step++;
- if (step == a.seq) step = 0;
+ if (step == a.seq)
+ step = 0;
count = 0;
}
}
@@ -1365,9 +1367,9 @@ void Trip::trippancy_link() {
}
call_andexors();
- for (fv = 1; fv <= numtr; fv++) {
- triptype &with = tr[fv];
- if (with.quick && with.call_eachstep) {
+
+ for (fv = 0; fv < numtr; fv++) {
+ if (tr[fv].quick && tr[fv].call_eachstep) {
switch (tr[fv].eachstep) {
case procfollow_avvy_y :
follow_avvy_y(fv);
@@ -1391,6 +1393,7 @@ void Trip::trippancy_link() {
}
}
}
+
if (mustexclaim) {
mustexclaim = false;
_vm->_visa->dixi('x', saywhat);
diff --git a/engines/avalanche/trip6.h b/engines/avalanche/trip6.h
index 30fcba2a16..b960edc3ae 100644
--- a/engines/avalanche/trip6.h
+++ b/engines/avalanche/trip6.h
@@ -25,7 +25,7 @@
* Copyright (c) 1994-1995 Mike, Mark and Thomas Thurman.
*/
-/* TRIP5 Trippancy V */
+/* TRIP5 Trippancy V - the sprite animation subsystem */
#ifndef TRIP6_H