automap: flashing key based switch (#294)

* flashing key based switch

* add check for keyed switch

* forgot else

* remove check for closed door again

* add comment
This commit is contained in:
Roman Fomin 2021-10-18 22:55:06 +07:00 committed by GitHub
parent 57c6d23cbc
commit f79738e9d5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1472,9 +1472,13 @@ void AM_drawWalls(void)
(lines[i].special>=GenLockedBase && lines[i].special<GenDoorBase))
)
{
// Remove the closed door check for flashing keyed switches feature
// from Crispy Doom.
#if 0
if ((lines[i].backsector->floorheight==lines[i].backsector->ceilingheight) ||
(lines[i].frontsector->floorheight==lines[i].frontsector->ceilingheight))
{
#endif
if (map_keyed_door_flash && (leveltime & 16))
{
AM_drawMline(&l, mapcolor_grid);
@ -1502,8 +1506,10 @@ void AM_drawWalls(void)
mapcolor_clsd? mapcolor_clsd : mapcolor_cchg);
break;
}
#if 0
}
else AM_drawMline(&l, mapcolor_cchg); // open keyed door
#endif
}
else if (lines[i].flags & ML_SECRET) // secret door
{