aboutsummaryrefslogtreecommitdiff
path: root/engines/scumm/smush/smush_player.cpp
diff options
context:
space:
mode:
authorGregory Montoir2007-02-03 17:55:49 +0000
committerGregory Montoir2007-02-03 17:55:49 +0000
commit9c7dd9162683217e48a91bee8fbdd631d20a12e6 (patch)
treedd565d4aee50639fdadf7c5312e55d9c8c8e4f03 /engines/scumm/smush/smush_player.cpp
parentc9cb0ca8bf0a3e906db132c7af25fb819eb315d1 (diff)
downloadscummvm-rg350-9c7dd9162683217e48a91bee8fbdd631d20a12e6.tar.gz
scummvm-rg350-9c7dd9162683217e48a91bee8fbdd631d20a12e6.tar.bz2
scummvm-rg350-9c7dd9162683217e48a91bee8fbdd631d20a12e6.zip
removed unneeded/unnecessary variables and made SmushFont table private (to ensure getFont() get called to access them)
svn-id: r25352
Diffstat (limited to 'engines/scumm/smush/smush_player.cpp')
-rw-r--r--engines/scumm/smush/smush_player.cpp10
1 files changed, 1 insertions, 9 deletions
diff --git a/engines/scumm/smush/smush_player.cpp b/engines/scumm/smush/smush_player.cpp
index cb20ca16a6..f008d8b457 100644
--- a/engines/scumm/smush/smush_player.cpp
+++ b/engines/scumm/smush/smush_player.cpp
@@ -238,7 +238,6 @@ void SmushPlayer::timerCallback() {
SmushPlayer::SmushPlayer(ScummEngine_v7 *scumm) {
_vm = scumm;
- _version = -1;
_nbframes = 0;
_codec37 = 0;
_codec47 = 0;
@@ -262,7 +261,6 @@ SmushPlayer::SmushPlayer(ScummEngine_v7 *scumm) {
_width = 0;
_height = 0;
_IACTpos = 0;
- _initDone = false;
_speed = -1;
_insanity = false;
_middleAudio = false;
@@ -311,13 +309,9 @@ void SmushPlayer::init(int32 speed) {
_vm->_mixer->stopHandle(_IACTchannel);
_IACTpos = 0;
_vm->_smixer->stop();
-
- _initDone = true;
}
void SmushPlayer::release() {
- if (!_initDone)
- return;
#ifdef __SYMBIAN32__
_closeOnTextTick = true;
// Wait for _closeOnTextTick to be set to false to indicate file closure
@@ -355,8 +349,6 @@ void SmushPlayer::release() {
_vm->virtscr[0].pitch = _origPitch;
_vm->_gdi->_numStrips = _origNumStrips;
- _initDone = false;
-
delete _codec37;
_codec37 = 0;
delete _codec47;
@@ -1010,7 +1002,7 @@ void SmushPlayer::handleAnimHeader(Chunk &b) {
checkBlock(b, MKID_BE('AHDR'), 0x300 + 6);
debugC(DEBUG_SMUSH, "SmushPlayer::handleAnimHeader()");
- _version = b.readUint16LE();
+ /* _version = */ b.readUint16LE();
_nbframes = b.readUint16LE();
b.readUint16LE();