diff options
author | Max Horn | 2006-10-25 23:12:34 +0000 |
---|---|---|
committer | Max Horn | 2006-10-25 23:12:34 +0000 |
commit | 9760469373be82e467fe94847eab36942ca56bcb (patch) | |
tree | 26f6b73e7450c1894526cc4e32c8c59e6047cfb6 | |
parent | 77e40457a89409e12e4cea864d17d6f1da77116f (diff) | |
download | scummvm-rg350-9760469373be82e467fe94847eab36942ca56bcb.tar.gz scummvm-rg350-9760469373be82e467fe94847eab36942ca56bcb.tar.bz2 scummvm-rg350-9760469373be82e467fe94847eab36942ca56bcb.zip |
cleanup
svn-id: r24514
-rw-r--r-- | engines/scumm/smush/smush_player.cpp | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/engines/scumm/smush/smush_player.cpp b/engines/scumm/smush/smush_player.cpp index 8c5554b9c2..8dd4451627 100644 --- a/engines/scumm/smush/smush_player.cpp +++ b/engines/scumm/smush/smush_player.cpp @@ -222,16 +222,17 @@ static StringResource *getStrings(ScummEngine *vm, const char *file, bool is_enc } void SmushPlayer::timerCallback(void *refCon) { - ((SmushPlayer *)refCon)->parseNextFrame(); + SmushPlayer *sp = (SmushPlayer *)refCon; + sp->parseNextFrame(); #ifdef _WIN32_WCE - ((SmushPlayer *)refCon)->_inTimer = true; - ((SmushPlayer *)refCon)->_inTimerCount++; + sp->_inTimer = true; + sp->_inTimerCount++; #endif #ifdef __SYMBIAN32__ - if (((SmushPlayer *)refCon)->_closeOnTextTick) { - delete ((SmushPlayer *)refCon)->_base; - ((SmushPlayer *)refCon)->_base = NULL; - ((SmushPlayer *)refCon)->_closeOnTextTick = false; + if (sp->_closeOnTextTick) { + delete sp->_base; + sp->_base = NULL; + sp->_closeOnTextTick = false; } #endif } |