mirror of
https://git.do.srb2.org/STJr/SRB2.git
synced 2025-02-20 19:02:34 +00:00
Fix PolyObject flags not being applied when there is no parameter line
This commit is contained in:
parent
023c095d55
commit
5282f01a53
1 changed files with 2 additions and 2 deletions
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in a new issue