aboutsummaryrefslogtreecommitdiff
path: root/engines/avalanche
diff options
context:
space:
mode:
authoruruk2013-09-21 19:12:44 +0200
committeruruk2013-09-21 19:12:44 +0200
commit183f10e4a08dfe714b49866b079beffd98cafffc (patch)
tree5b1dd76bad9fcb065572ac5424fb6b05c88a4443 /engines/avalanche
parenta80af5326e14e444856b9a772e793c370666ba26 (diff)
downloadscummvm-rg350-183f10e4a08dfe714b49866b079beffd98cafffc.tar.gz
scummvm-rg350-183f10e4a08dfe714b49866b079beffd98cafffc.tar.bz2
scummvm-rg350-183f10e4a08dfe714b49866b079beffd98cafffc.zip
AVALANCHE: Simplify Sequence::firstShow().
Diffstat (limited to 'engines/avalanche')
-rw-r--r--engines/avalanche/sequence.cpp8
1 files changed, 3 insertions, 5 deletions
diff --git a/engines/avalanche/sequence.cpp b/engines/avalanche/sequence.cpp
index cb6bd06e6c..871a38573a 100644
--- a/engines/avalanche/sequence.cpp
+++ b/engines/avalanche/sequence.cpp
@@ -43,12 +43,10 @@ Sequence::Sequence(AvalancheEngine *vm) {
}
void Sequence::firstShow(byte what) {
- // First, we need to blank out the entire array.
- for (uint i = 0; i < sizeof(_seq); i++)
- _seq[i] = 0;
+ _seq[0] = what;
- // Then it's just the same as thenShow.
- thenShow(what);
+ for (uint i = 1; i < kSeqLength; i++)
+ _seq[i] = 0;
}
void Sequence::thenShow(byte what) {