diff options
| author | Filippos Karapetis | 2015-02-14 14:45:08 +0200 |
|---|---|---|
| committer | Filippos Karapetis | 2015-02-14 15:08:28 +0200 |
| commit | 14914b2a31399ceb6b2e4d7616535e346ee3acd6 (patch) | |
| tree | 5b2640d61a292c8e47c2e443367cee849138dfd2 /engines/zvision/scripting/effects | |
| parent | 2d2cfbe005b93397f1e121888b0358e137ccc863 (diff) | |
| download | scummvm-rg350-14914b2a31399ceb6b2e4d7616535e346ee3acd6.tar.gz scummvm-rg350-14914b2a31399ceb6b2e4d7616535e346ee3acd6.tar.bz2 scummvm-rg350-14914b2a31399ceb6b2e4d7616535e346ee3acd6.zip | |
ZVISION: Add custom equality operators for game location
This makes the location checks more readable
Diffstat (limited to 'engines/zvision/scripting/effects')
| -rw-r--r-- | engines/zvision/scripting/effects/music_effect.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/engines/zvision/scripting/effects/music_effect.cpp b/engines/zvision/scripting/effects/music_effect.cpp index 2e2084783d..ad3c0f6d22 100644 --- a/engines/zvision/scripting/effects/music_effect.cpp +++ b/engines/zvision/scripting/effects/music_effect.cpp @@ -227,8 +227,7 @@ bool PanTrackNode::process(uint32 deltaTimeInMillis) { int volumeCorrection = 2; if (_engine->getGameId() == GID_GRANDINQUISITOR) { - Location loc = scriptManager->getCurrentLocation(); - if (loc.world == 'd' && loc.room == 'c' && loc.node == '1' && loc.view == '0') + if (scriptManager->getCurrentLocation() == "dc10") volumeCorrection = 5; } |
