Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
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...
commit 9c9c015feff5c088d4b18903b1a368e8b357fb2d 1 parent f47a95a
@lynxlynxlynx lynxlynxlynx authored
Showing with 3 additions and 0 deletions.
  1. +3 −0  gemrb/core/TileMap.cpp
View
3  gemrb/core/TileMap.cpp
@@ -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
Please sign in to comment.
Something went wrong with that request. Please try again.