Skip to content

Commit

Permalink
DRASCULA: Fix axe visibility flag when entering room 31
Browse files Browse the repository at this point in the history
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
  • Loading branch information
criezy committed Apr 17, 2016
1 parent 79d36b3 commit 6390b41
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions engines/drascula/objects.cpp
Expand Up @@ -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)
Expand Down

0 comments on commit 6390b41

Please sign in to comment.