Permalink
Browse files

TileMap::GetDoor(const Point &p): ignore HIDDEN doors

fixes the wrong door being used for overDoor when a hidden door is
 overlapping another one (eg. for Tabbard's shield)
  • Loading branch information...
1 parent f47a95a commit 9c9c015feff5c088d4b18903b1a368e8b357fb2d @lynxlynxlynx lynxlynxlynx committed Jun 13, 2013
Showing with 3 additions and 0 deletions.
  1. +3 −0 gemrb/core/TileMap.cpp
View
@@ -125,6 +125,9 @@ Door* TileMap::GetDoor(const Point &p) const
Gem_Polygon *doorpoly;
Door* door = doors[i];
+ if (door->Flags&DOOR_HIDDEN) {
+ continue;
+ }
if (door->Flags&DOOR_OPEN)
doorpoly = door->open;
else

0 comments on commit 9c9c015

Please sign in to comment.