aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
authorStrangerke2014-02-20 07:43:41 +0100
committerStrangerke2014-02-20 07:43:41 +0100
commit31d3171b65d9e56b3aa0add8ca05fdb542c13a26 (patch)
tree425be251530280b1d8ccfbf91a37a494efdfb47b /engines
parent5159996cecce2ae0d9e8f2b8567fd4ffd93ee6b4 (diff)
downloadscummvm-rg350-31d3171b65d9e56b3aa0add8ca05fdb542c13a26.tar.gz
scummvm-rg350-31d3171b65d9e56b3aa0add8ca05fdb542c13a26.tar.bz2
scummvm-rg350-31d3171b65d9e56b3aa0add8ca05fdb542c13a26.zip
VOYEUR: Remove a useless parameter in doTimeBar()
Diffstat (limited to 'engines')
-rw-r--r--engines/voyeur/files_threads.cpp2
-rw-r--r--engines/voyeur/voyeur.h2
-rw-r--r--engines/voyeur/voyeur_game.cpp6
3 files changed, 5 insertions, 5 deletions
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;