Account for the NOTONAUTOMAP flag when using am_thingrenderstyles

This commit is contained in:
Cacodemon345 2020-06-20 13:01:13 +06:00 committed by drfrag
parent 5e65a9d6b9
commit a0fee03209

View file

@ -2983,7 +2983,7 @@ void AM_drawThings ()
while (t)
{
if (am_cheat > 0 || !(t->flags6 & MF6_NOTONAUTOMAP)
|| (am_thingrenderstyles && !(t->renderflags & RF_INVISIBLE)))
|| (am_thingrenderstyles && !(t->renderflags & RF_INVISIBLE) && !(t->flags6 & MF6_NOTONAUTOMAP)))
{
DVector3 pos = t->PosRelative(MapPortalGroup);
p.x = pos.X;