aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFilippos Karapetis2015-10-08 05:36:32 +0300
committerEugene Sandulenko2015-12-15 00:05:02 +0100
commitf1351dcd9e80acc305365f8726fd05600283a6e4 (patch)
tree164e6136507f79ce9294bdbca696ff2258add6b8
parent98e9eff2d1576328c58e0bb64cae0e01c4df2084 (diff)
downloadscummvm-rg350-f1351dcd9e80acc305365f8726fd05600283a6e4.tar.gz
scummvm-rg350-f1351dcd9e80acc305365f8726fd05600283a6e4.tar.bz2
scummvm-rg350-f1351dcd9e80acc305365f8726fd05600283a6e4.zip
LAB: Remove dead code
-rw-r--r--engines/lab/readdiff.cpp14
1 files changed, 2 insertions, 12 deletions
diff --git a/engines/lab/readdiff.cpp b/engines/lab/readdiff.cpp
index ab93d32c1d..b2720ea202 100644
--- a/engines/lab/readdiff.cpp
+++ b/engines/lab/readdiff.cpp
@@ -37,11 +37,11 @@
namespace Lab {
-static bool PlayOnce = false, changedscreen;
+static bool PlayOnce = false;
static uint32 header, size, processed = 0L, WaitSec = 0L, WaitMicros = 0L, DelayMicros = 0L;
static uint16 CurBit = 0, framenumber = 0, samplespeed, numchunks = 1;
static byte *Buffer, temp[5];
-static bool FirstThru = true, donepal = false;
+static bool donepal = false;
static byte *storagefordifffile, **difffile = &storagefordifffile;
static byte *start;
static uint32 diffwidth, diffheight;
@@ -57,7 +57,6 @@ bool DoBlack = false, /* Black the screen before new picture */
static bool continuous,
IsPlaying = false,
- StopPlaying = false,
StopPlayingEnd = false,
IsAnim = false,
IsPal = false;
@@ -150,7 +149,6 @@ void diffNextFrame() {
}
donepal = true;
- FirstThru = false;
}
if (IsPal && !nopalchange && !IsBM && !donepal) {
@@ -308,16 +306,12 @@ void playDiff() {
CurBit = 0;
framenumber = 0;
numchunks = 1;
- FirstThru = true;
donepal = false;
difffile = &storagefordifffile;
IsPlaying = true;
- StopPlaying = false;
StopPlayingEnd = false;
- changedscreen = false;
-
if (DoBlack) {
DoBlack = false;
blackScreen();
@@ -406,8 +400,6 @@ void playDiff() {
/*****************************************************************************/
void stopDiff() {
if (IsPlaying) {
- StopPlaying = true;
-
if (IsAnim)
blackScreen();
}
@@ -420,8 +412,6 @@ void stopDiff() {
/*****************************************************************************/
void stopDiffEnd() {
if (IsPlaying) {
- StopPlayingEnd = true;
-
while (IsPlaying) {
g_music->updateMusic();
diffNextFrame();