Browse files

Door::Visible: don't treat doors with the iwd2 hidden bit set as visible

i hope the other games don't have garbage in the high bits
  • Loading branch information...
1 parent 6140f54 commit 13dfd2996f7e9b9d84090f4f2633687b2efe3e0a @lynxlynxlynx lynxlynxlynx committed Jun 13, 2013
Showing with 1 addition and 1 deletion.
  1. +1 −1 gemrb/core/Scriptable/Door.cpp
View
2 gemrb/core/Scriptable/Door.cpp
@@ -301,7 +301,7 @@ void Door::TryDetectSecret(int skill, ieDword actorID)
// return true if the door isn't secret or if it is, but was already discovered
bool Door::Visible()
{
- return (!(Flags & DOOR_SECRET) || (Flags & DOOR_FOUND));
+ return (!(Flags & DOOR_SECRET) || (Flags & DOOR_FOUND)) && !(Flags & DOOR_HIDDEN);
}
void Door::SetPolygon(bool Open, Gem_Polygon* poly)

0 comments on commit 13dfd29

Please sign in to comment.