diff --git a/engines/voyeur/events.cpp b/engines/voyeur/events.cpp index ce481e05943..e96ff12bd13 100644 --- a/engines/voyeur/events.cpp +++ b/engines/voyeur/events.cpp @@ -194,12 +194,14 @@ void EventsManager::pollEvents() { return; case Common::EVENT_LBUTTONDOWN: _mouseButton = 1; + _vm->_voy._incriminate = true; return; case Common::EVENT_RBUTTONDOWN: _mouseButton = 2; return; case Common::EVENT_LBUTTONUP: case Common::EVENT_RBUTTONUP: + _vm->_voy._incriminate = false; _mouseButton = 0; return; case Common::EVENT_MOUSEMOVE: diff --git a/engines/voyeur/voyeur.cpp b/engines/voyeur/voyeur.cpp index 276fd323cf8..5afc46152e5 100644 --- a/engines/voyeur/voyeur.cpp +++ b/engines/voyeur/voyeur.cpp @@ -303,6 +303,7 @@ bool VoyeurEngine::doLock() { _eventsManager.delay(1); } while (!shouldQuit() && !_voy._incriminate); + _voy._incriminate = false; } while (!shouldQuit() && key == -1); _soundManager.abortVOCMap(); diff --git a/engines/voyeur/voyeur.h b/engines/voyeur/voyeur.h index 7a156b8f3f1..95a664e7aa2 100644 --- a/engines/voyeur/voyeur.h +++ b/engines/voyeur/voyeur.h @@ -66,7 +66,6 @@ private: Common::RandomSource _randomSource; BoltFile *_bVoy; - SVoy _voy; Common::Array _resolves; FontInfoResource _defaultFontInfo; @@ -90,6 +89,7 @@ public: FilesManager _filesManager; GraphicsManager _graphicsManager; SoundManager _soundManager; + SVoy _voy; public: VoyeurEngine(OSystem *syst, const VoyeurGameDescription *gameDesc); virtual ~VoyeurEngine();