diff options
author | Thierry Crozat | 2016-04-17 22:14:20 +0100 |
---|---|---|
committer | Thierry Crozat | 2016-04-17 22:14:20 +0100 |
commit | e90f01bc0c802ed69e2a4a39deeeb92fcdd1dc1b (patch) | |
tree | 8761d841dbd42377d681a90a43306eb8d48f1540 /engines/drascula | |
parent | ee8eb5f1607abaefae41bdf0d3f2e2ae7b18b3c7 (diff) | |
download | scummvm-rg350-e90f01bc0c802ed69e2a4a39deeeb92fcdd1dc1b.tar.gz scummvm-rg350-e90f01bc0c802ed69e2a4a39deeeb92fcdd1dc1b.tar.bz2 scummvm-rg350-e90f01bc0c802ed69e2a4a39deeeb92fcdd1dc1b.zip |
DRASCULA: Fix axe visibility flag when entering room 31
The visible[1] flag in room 31 (i.e. for the axe) is now reset according
to flags[13] (which indicate if we picked up the axe already or not).
This fixes bug #7118 Drascula: Axe item can be picked up infinite
times
Diffstat (limited to 'engines/drascula')
-rw-r--r-- | engines/drascula/objects.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/engines/drascula/objects.cpp b/engines/drascula/objects.cpp index 823c073d43..02846abcc9 100644 --- a/engines/drascula/objects.cpp +++ b/engines/drascula/objects.cpp @@ -272,6 +272,8 @@ void DrasculaEngine::updateVisible() { visible[2] = 0; if (_roomNumber == 26 && flags[12] == 1) visible[1] = 0; + if (_roomNumber == 31 && flags[13] == 1) + visible[1] = 0; if (_roomNumber == 35 && flags[14] == 1) visible[2] = 0; if (_roomNumber == 35 && flags[17] == 1) |