From 4dbed7742afea3afc414d9550378f5c98709ad29 Mon Sep 17 00:00:00 2001 From: Filippos Karapetis Date: Fri, 3 Nov 2017 09:33:27 +0200 Subject: DRASCULA: Reduce the scope of framesWithoutAction --- engines/drascula/drascula.cpp | 3 +-- engines/drascula/drascula.h | 1 - 2 files changed, 1 insertion(+), 3 deletions(-) (limited to 'engines/drascula') diff --git a/engines/drascula/drascula.cpp b/engines/drascula/drascula.cpp index e442681099..1f3f0c654d 100644 --- a/engines/drascula/drascula.cpp +++ b/engines/drascula/drascula.cpp @@ -70,7 +70,6 @@ DrasculaEngine::DrasculaEngine(OSystem *syst, const DrasculaGameDescription *gam _talkSequences = 0; _currentSaveSlot = 0; - framesWithoutAction = 0; term_int = 0; currentChapter = 0; _loadedDifferentChapter = false; @@ -310,7 +309,6 @@ Common::Error DrasculaEngine::run() { vonBraunX = 120; trackVonBraun = 1; vonBraunHasMoved = 0; - framesWithoutAction = 0; term_int = 0; musicStopped = 0; globalSpeed = 0; @@ -399,6 +397,7 @@ void DrasculaEngine::endChapter() { bool DrasculaEngine::runCurrentChapter() { int n; + int framesWithoutAction = 0; _rightMouseButton = 0; diff --git a/engines/drascula/drascula.h b/engines/drascula/drascula.h index be27ae6e32..d493a9dc73 100644 --- a/engines/drascula/drascula.h +++ b/engines/drascula/drascula.h @@ -457,7 +457,6 @@ public: int blinking; int igorX, igorY, trackIgor; int drasculaX, drasculaY, trackDrascula; - int framesWithoutAction; int term_int; int currentChapter; bool _loadedDifferentChapter; -- cgit v1.2.3