Browse Source

[hellfire] GetAutomapType bin exact (#1777)

pull/876/head
qndel 7 years ago committed by Anders Jenbo
parent
commit
d4db63ce48
  1. 15
      Source/automap.cpp

15
Source/automap.cpp

@ -632,10 +632,17 @@ WORD GetAutomapType(int x, int y, BOOL view)
} }
rv = automaptype[(BYTE)dungeon[x][y]]; rv = automaptype[(BYTE)dungeon[x][y]];
if (rv == 7 if (rv == 7) {
&& GetAutomapType(x - 1, y, FALSE) & (MAPFLAG_HORZARCH << 8) #ifdef HELLFIRE
&& GetAutomapType(x, y - 1, FALSE) & (MAPFLAG_VERTARCH << 8)) { if ((BYTE)(GetAutomapType(x - 1, y, FALSE) >> 8) & MAPFLAG_HORZARCH) {
rv = 1; if ((BYTE)(GetAutomapType(x, y - 1, FALSE) >> 8) & MAPFLAG_VERTARCH) {
#else
if ((GetAutomapType(x - 1, y, FALSE) >> 8) & MAPFLAG_HORZARCH) {
if ((GetAutomapType(x, y - 1, FALSE) >> 8) & MAPFLAG_VERTARCH) {
#endif
rv = 1;
}
}
} }
return rv; return rv;
} }

Loading…
Cancel
Save