Fix PolyObject flags not being applied when there is no parameter line

This commit is contained in:
MascaraSnake 2020-05-05 08:40:59 +02:00
parent 023c095d55
commit 5282f01a53

View file

@ -210,6 +210,8 @@ static void Polyobj_GetInfo(polyobj_t *po)
{
INT32 i = P_FindSpecialLineFromTag(POLYINFO_SPECIALNUM, po->id, -1);
po->flags = POF_SOLID|POF_TESTHEIGHT|POF_RENDERSIDES;
if (i == -1)
return; // no extra settings to apply, let's leave it
@ -223,8 +225,6 @@ static void Polyobj_GetInfo(polyobj_t *po)
po->translucency = max(min(po->translucency, NUMTRANSMAPS), 0);
po->flags = POF_SOLID|POF_TESTHEIGHT|POF_RENDERSIDES;
if (lines[i].flags & ML_EFFECT1)
po->flags |= POF_ONESIDE;