diff options
author | Thanasis Antoniou | 2019-07-16 14:24:19 +0300 |
---|---|---|
committer | Thanasis Antoniou | 2019-07-17 19:09:13 +0300 |
commit | d1ff73cbb381db1876e2dbdf0457c9efc76fcd1a (patch) | |
tree | e325d0eb7630f1c6eef4bb52ca7cbe5e9d35def7 /engines/bladerunner/settings.cpp | |
parent | 4c45f9f39f3aa0bfee70fc81b7d0938de12dfdf0 (diff) | |
download | scummvm-rg350-d1ff73cbb381db1876e2dbdf0457c9efc76fcd1a.tar.gz scummvm-rg350-d1ff73cbb381db1876e2dbdf0457c9efc76fcd1a.tar.bz2 scummvm-rg350-d1ff73cbb381db1876e2dbdf0457c9efc76fcd1a.zip |
BLADERUNNER: Replace difficulty values with proper enum
Diffstat (limited to 'engines/bladerunner/settings.cpp')
-rw-r--r-- | engines/bladerunner/settings.cpp | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/engines/bladerunner/settings.cpp b/engines/bladerunner/settings.cpp index f86536e572..b4a0022e26 100644 --- a/engines/bladerunner/settings.cpp +++ b/engines/bladerunner/settings.cpp @@ -39,8 +39,8 @@ namespace BladeRunner { Settings::Settings(BladeRunnerEngine *vm) { _vm = vm; - _difficulty = 1; - _playerAgenda = 1; + _difficulty = kGameDifficultyMedium; + _playerAgenda = kPlayerAgendaNormal; _chapter = 1; _scene = -1; @@ -65,6 +65,7 @@ Settings::Settings(BladeRunnerEngine *vm) { _fullHDFrames = true; _mst3k = false; + // TODO: A bug? why is this set again here? _ammoType = 0; _ammoAmounts[0] = 0; _ammoAmounts[1] = 0; @@ -174,7 +175,7 @@ void Settings::addAmmo(int ammoType, int ammo) { } void Settings::decreaseAmmo() { - if (_difficulty == 0 || _ammoType == 0) { + if (_difficulty == kGameDifficultyEasy || _ammoType == 0) { return; } |