diff --git a/extras/conf/udb/Includes/SRB222_linedefs.cfg b/extras/conf/udb/Includes/SRB222_linedefs.cfg index 166836ca6f35d787a464ac238cebfb442f251106..1f87c2c3a5aeb8185ac96370f37e1fcf03fe55b4 100644 --- a/extras/conf/udb/Includes/SRB222_linedefs.cfg +++ b/extras/conf/udb/Includes/SRB222_linedefs.cfg @@ -1550,6 +1550,7 @@ udmf 8 = "Don't render planes"; 16 = "Trigger linedef executor on touch"; 32 = "Crush player"; + 64 = "Cut cyan flat pixels"; } } arg4 diff --git a/src/p_polyobj.c b/src/p_polyobj.c index 0968809c4e880fe46a0e44ee60998943111de66f..997d482821016dafa7539b171bc75d9f4dd9f8e4 100644 --- a/src/p_polyobj.c +++ b/src/p_polyobj.c @@ -231,7 +231,7 @@ static void Polyobj_GetInfo(polyobj_t *po, line_t *line) /*if (line->args[3] & TMPF_DONTCLIPPLANES) po->flags &= ~POF_CLIPPLANES;*/ - if (lines[i].flags & ML_EFFECT6) + if (lines[i].flags & TMPF_SPLAT) po->flags |= POF_SPLAT; if (line->args[3] & TMPF_EXECUTOR) // Has a linedef executor diff --git a/src/p_polyobj.h b/src/p_polyobj.h index f9c6e005a11f99047a7a5e477b26ac07b9864b24..f24caca4e7263102e4b2de2b9d4311435858dc28 100644 --- a/src/p_polyobj.h +++ b/src/p_polyobj.h @@ -58,7 +58,8 @@ typedef enum TMPF_INVISIBLEPLANES = 1<<3, TMPF_EXECUTOR = 1<<4, TMPF_CRUSH = 1<<5, - //TMPF_DONTCLIPPLANES = 1<<6, + TMPF_SPLAT = 1<<6, + //TMPF_DONTCLIPPLANES = 1<<7, } textmappolyobjectflags_t; // diff --git a/src/p_setup.c b/src/p_setup.c index 45899fb1d23fb1ebd99561222c60a6b37c804ef3..41f57a2b3b1f93532bae22d558ca95e3488efe8b 100644 --- a/src/p_setup.c +++ b/src/p_setup.c @@ -2995,6 +2995,8 @@ static void P_ConvertBinaryMap(void) lines[i].args[3] &= ~TMPF_INVISIBLEPLANES; /*if (lines[paramline].flags & ML_EFFECT5) lines[i].args[3] |= TMPF_DONTCLIPPLANES;*/ + if (lines[paramline].flags & ML_EFFECT6) + lines[i].args[3] |= TMPF_SPLAT; if (lines[paramline].flags & ML_NOCLIMB) lines[i].args[3] |= TMPF_EXECUTOR;