mirror of
https://git.do.srb2.org/STJr/SRB2.git
synced 2024-11-24 13:21:20 +00:00
Cut inner walls of splat FOFs
This commit is contained in:
parent
979bc471ba
commit
496bd79f9b
1 changed files with 6 additions and 6 deletions
12
src/p_spec.c
12
src/p_spec.c
|
@ -6510,8 +6510,8 @@ void P_SpawnSpecials(boolean fromnetsave)
|
||||||
//Cutting options
|
//Cutting options
|
||||||
if (ffloorflags & FOF_RENDERALL)
|
if (ffloorflags & FOF_RENDERALL)
|
||||||
{
|
{
|
||||||
//If translucent or player can enter it, cut inner walls
|
//If inside is visible, cut inner walls
|
||||||
if ((lines[i].args[1] < 255) || (lines[i].args[4] & TMFT_VISIBLEFROMINSIDE))
|
if ((lines[i].args[1] < 255) || (lines[i].args[3] & TMFA_SPLAT) || (lines[i].args[4] & TMFT_VISIBLEFROMINSIDE))
|
||||||
ffloorflags |= FOF_CUTEXTRA|FOF_EXTRA;
|
ffloorflags |= FOF_CUTEXTRA|FOF_EXTRA;
|
||||||
else
|
else
|
||||||
ffloorflags |= FOF_CUTLEVEL;
|
ffloorflags |= FOF_CUTLEVEL;
|
||||||
|
@ -6569,8 +6569,8 @@ void P_SpawnSpecials(boolean fromnetsave)
|
||||||
if (lines[i].args[4] & TMFC_SPLAT)
|
if (lines[i].args[4] & TMFC_SPLAT)
|
||||||
ffloorflags |= FOF_SPLAT;
|
ffloorflags |= FOF_SPLAT;
|
||||||
|
|
||||||
//If translucent or player can enter it, cut inner walls
|
//If inside is visible, cut inner walls
|
||||||
if (lines[i].args[1] < 0xff || (lines[i].args[3] & TMFT_VISIBLEFROMINSIDE))
|
if (lines[i].args[1] < 0xff || (lines[i].args[3] & TMFT_VISIBLEFROMINSIDE) || (lines[i].args[4] & TMFC_SPLAT))
|
||||||
ffloorflags |= FOF_CUTEXTRA|FOF_EXTRA;
|
ffloorflags |= FOF_CUTEXTRA|FOF_EXTRA;
|
||||||
else
|
else
|
||||||
ffloorflags |= FOF_CUTLEVEL;
|
ffloorflags |= FOF_CUTLEVEL;
|
||||||
|
@ -6633,8 +6633,8 @@ void P_SpawnSpecials(boolean fromnetsave)
|
||||||
//Cutting options
|
//Cutting options
|
||||||
if (ffloorflags & FOF_RENDERALL)
|
if (ffloorflags & FOF_RENDERALL)
|
||||||
{
|
{
|
||||||
//If translucent or player can enter it, cut inner walls
|
//If inside is visible, cut inner walls
|
||||||
if ((lines[i].args[1] < 255) || (lines[i].args[4] & TMFT_VISIBLEFROMINSIDE))
|
if ((lines[i].args[1] < 255) || (lines[i].args[3] & TMFA_SPLAT) || (lines[i].args[4] & TMFT_VISIBLEFROMINSIDE))
|
||||||
ffloorflags |= FOF_CUTEXTRA|FOF_EXTRA;
|
ffloorflags |= FOF_CUTEXTRA|FOF_EXTRA;
|
||||||
else
|
else
|
||||||
ffloorflags |= FOF_CUTLEVEL;
|
ffloorflags |= FOF_CUTLEVEL;
|
||||||
|
|
Loading…
Reference in a new issue