aboutsummaryrefslogtreecommitdiff
path: root/engines/voyeur
diff options
context:
space:
mode:
authorStrangerke2014-02-20 21:31:19 +0100
committerStrangerke2014-02-20 21:31:19 +0100
commit5a5783841691882b914e6c6804baf3031e967ace (patch)
tree00f42a988faeafb8fcb48eaa5f2b2ccd67386e16 /engines/voyeur
parent906140e752d0084d7d7e2ec0c59cafcaed06843a (diff)
downloadscummvm-rg350-5a5783841691882b914e6c6804baf3031e967ace.tar.gz
scummvm-rg350-5a5783841691882b914e6c6804baf3031e967ace.tar.bz2
scummvm-rg350-5a5783841691882b914e6c6804baf3031e967ace.zip
VOYEUR: Add iForcedDeath as a boot parameter
Diffstat (limited to 'engines/voyeur')
-rw-r--r--engines/voyeur/voyeur.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/engines/voyeur/voyeur.cpp b/engines/voyeur/voyeur.cpp
index 9731968aaf..3f9e74d4b1 100644
--- a/engines/voyeur/voyeur.cpp
+++ b/engines/voyeur/voyeur.cpp
@@ -40,7 +40,11 @@ VoyeurEngine::VoyeurEngine(OSystem *syst, const VoyeurGameDescription *gameDesc)
_defaultFontInfo(3, 0xff, 0xff, 0, 0, ALIGN_LEFT, 0, Common::Point(), 1, 1,
Common::Point(1, 1), 1, 0, 0) {
_bVoy = NULL;
- _iForceDeath = -1;
+
+ _iForceDeath = ConfMan.getInt("boot_param");
+ if (_iForceDeath < 1 || _iForceDeath > 4)
+ _iForceDeath = -1;
+
_controlPtr = NULL;
_stampFlags = 0;
_playStampGroupId = _currentVocId = 0;