aboutsummaryrefslogtreecommitdiff
path: root/engines/teenagent/animation.cpp
diff options
context:
space:
mode:
authorD G Turner2012-07-07 17:04:42 +0100
committerD G Turner2012-07-07 17:04:42 +0100
commit62c4c0922556a0ac95a60b760d2c49d3f186f85f (patch)
treedb387bf820d662f2d342ec15c0952624b16ecf8b /engines/teenagent/animation.cpp
parenta77a81da5160a8257d1596d11b27c8677b2350ef (diff)
downloadscummvm-rg350-62c4c0922556a0ac95a60b760d2c49d3f186f85f.tar.gz
scummvm-rg350-62c4c0922556a0ac95a60b760d2c49d3f186f85f.tar.bz2
scummvm-rg350-62c4c0922556a0ac95a60b760d2c49d3f186f85f.zip
TEENAGENT: Enable commented out debug statements.
Commented out code is not good practice. Will change these statements to using debugflags instead in a future commit.
Diffstat (limited to 'engines/teenagent/animation.cpp')
-rw-r--r--engines/teenagent/animation.cpp18
1 files changed, 9 insertions, 9 deletions
diff --git a/engines/teenagent/animation.cpp b/engines/teenagent/animation.cpp
index 56107b67ca..943458c1c2 100644
--- a/engines/teenagent/animation.cpp
+++ b/engines/teenagent/animation.cpp
@@ -52,7 +52,7 @@ Surface *Animation::currentFrame(int dt) {
if (data != NULL) {
uint32 frame = 3 * index;
- //debug(0, "%u/%u", index, data_size / 3);
+ debug(0, "%u/%u", index, data_size / 3);
index += dt;
if (!loop && index >= data_size / 3) {
@@ -73,7 +73,7 @@ Surface *Animation::currentFrame(int dt) {
y = r->y = pos / 320;
}
} else {
- //debug(0, "index %u", index);
+ debug(0, "index %u", index);
r = frames + index;
index += dt;
index %= frames_count;
@@ -107,7 +107,7 @@ void Animation::free() {
}
void Animation::load(Common::SeekableReadStream &s, Type type) {
- //fixme: do not reload the same animation each time
+ //FIXME: do not reload the same animation each time
free();
if (s.size() <= 1) {
@@ -115,7 +115,7 @@ void Animation::load(Common::SeekableReadStream &s, Type type) {
return;
}
- //uint16 pos = 0;
+ uint16 pos = 0;
int off = 0;
switch (type) {
case kTypeLan:
@@ -141,8 +141,8 @@ void Animation::load(Common::SeekableReadStream &s, Type type) {
frames = new Surface[frames_count];
s.skip(frames_count * 2 - 2); //sizes
- /*pos = */s.readUint16LE();
- //debug(0, "pos?: %04x", pos);
+ pos = s.readUint16LE();
+ debug(0, "pos?: %04x", pos);
for (uint16 i = 0; i < frames_count; ++i) {
frames[i].load(s, Surface::kTypeLan);
@@ -167,7 +167,7 @@ void Animation::load(Common::SeekableReadStream &s, Type type) {
frames_count = data[idx];
data[idx + 1] = 0;
data[idx + 2] = 0;
- //debug(0, "frame #%u", data[idx]);
+ debug(0, "frame #%u", data[idx]);
}
frames = new Surface[frames_count];
@@ -184,11 +184,11 @@ void Animation::load(Common::SeekableReadStream &s, Type type) {
uint16 offset[255];
for (byte i = 0; i < frames_count; ++i) {
offset[i] = s.readUint16LE();
- //debug(0, "%u: %04x", i, offset[i]);
+ debug(0, "%u: %04x", i, offset[i]);
}
frames = new Surface[frames_count];
for (uint16 i = 0; i < frames_count; ++i) {
- //debug(0, "%04x", offset[i]);
+ debug(0, "%04x", offset[i]);
s.seek(offset[i] + off);
frames[i].load(s, Surface::kTypeOns);
}