From 31d3171b65d9e56b3aa0add8ca05fdb542c13a26 Mon Sep 17 00:00:00 2001 From: Strangerke Date: Thu, 20 Feb 2014 07:43:41 +0100 Subject: VOYEUR: Remove a useless parameter in doTimeBar() --- engines/voyeur/files_threads.cpp | 2 +- engines/voyeur/voyeur.h | 2 +- engines/voyeur/voyeur_game.cpp | 6 +++--- 3 files changed, 5 insertions(+), 5 deletions(-) (limited to 'engines') diff --git a/engines/voyeur/files_threads.cpp b/engines/voyeur/files_threads.cpp index 918f8338cf..3ab3067762 100644 --- a/engines/voyeur/files_threads.cpp +++ b/engines/voyeur/files_threads.cpp @@ -1339,7 +1339,7 @@ int ThreadResource::doInterface() { do { _vm->_voyeurArea = AREA_INTERFACE; - _vm->doTimeBar(true); + _vm->doTimeBar(); _vm->_eventsManager.getMouseInfo(); if (checkMansionScroll()) diff --git a/engines/voyeur/voyeur.h b/engines/voyeur/voyeur.h index 70202b0812..445c122591 100644 --- a/engines/voyeur/voyeur.h +++ b/engines/voyeur/voyeur.h @@ -242,7 +242,7 @@ public: /** * Displays the time/charge remaining on the video camera screen */ - void doTimeBar(bool force); + void doTimeBar(); /** * If necessary, flashes the time remaining bar on the video camera screen diff --git a/engines/voyeur/voyeur_game.cpp b/engines/voyeur/voyeur_game.cpp index 2c0df874b1..07003acfe3 100644 --- a/engines/voyeur/voyeur_game.cpp +++ b/engines/voyeur/voyeur_game.cpp @@ -1019,7 +1019,7 @@ void VoyeurEngine::makeViewFinder() { } (*_graphicsManager._vPort)->drawIfaceTime(); - doTimeBar(true); + doTimeBar(); pal->startFade(); flipPageAndWaitForFade(); @@ -1271,10 +1271,10 @@ void VoyeurEngine::getComputerBrush() { } } -void VoyeurEngine::doTimeBar(bool force) { +void VoyeurEngine::doTimeBar() { flashTimeBar(); - if ((force || _timeBarVal != _voy._RTVNum) && _voy._RTVLimit > 0) { + if (_voy._RTVLimit > 0) { if (_voy._RTVNum > _voy._RTVLimit || _voy._RTVNum < 0) _voy._RTVNum = _voy._RTVLimit - 1; -- cgit v1.2.3