mirror of
https://git.do.srb2.org/STJr/SRB2.git
synced 2025-03-13 06:13:18 +00:00
Cleanup fade fake floor code
This commit is contained in:
parent
45ae6efbad
commit
bf5efe6457
1 changed files with 5 additions and 15 deletions
20
src/p_spec.c
20
src/p_spec.c
|
@ -7282,19 +7282,14 @@ static boolean P_FadeFakeFloor(ffloor_t *rover, INT16 destvalue, INT16 speed,
|
||||||
{
|
{
|
||||||
if (rover->alpha >= 256)
|
if (rover->alpha >= 256)
|
||||||
{
|
{
|
||||||
//rover->flags |= FF_CUTLEVEL;
|
//rover->flags |= (FF_CUTLEVEL | FF_CUTEXTRA);
|
||||||
rover->flags &= ~FF_TRANSLUCENT;
|
rover->flags &= ~FF_TRANSLUCENT;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
rover->flags |= FF_TRANSLUCENT;
|
rover->flags |= FF_TRANSLUCENT;
|
||||||
//rover->flags &= ~FF_CUTLEVEL;
|
//rover->flags &= ~(FF_CUTLEVEL | FF_CUTEXTRA);
|
||||||
}
|
}
|
||||||
|
|
||||||
// if (rover->flags & FF_SOLID)
|
|
||||||
// rover->flags &= ~FF_CUTSPRITES;
|
|
||||||
// else
|
|
||||||
// rover->flags |= FF_CUTSPRITES;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
@ -7305,17 +7300,12 @@ static boolean P_FadeFakeFloor(ffloor_t *rover, INT16 destvalue, INT16 speed,
|
||||||
if (dotranslucent)
|
if (dotranslucent)
|
||||||
{
|
{
|
||||||
rover->flags |= FF_TRANSLUCENT;
|
rover->flags |= FF_TRANSLUCENT;
|
||||||
//rover->flags &= ~FF_CUTLEVEL;
|
//rover->flags &= ~(FF_CUTLEVEL | FF_CUTEXTRA);
|
||||||
|
|
||||||
// if (rover->flags & FF_SOLID)
|
|
||||||
// rover->flags &= ~FF_CUTSPRITES;
|
|
||||||
// else
|
|
||||||
// rover->flags |= FF_CUTSPRITES;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if (docollision)
|
if (docollision)
|
||||||
{
|
{
|
||||||
if (doghostfade) // remove interaction flags during fade
|
if (doghostfade) // remove collision flags during fade
|
||||||
{
|
{
|
||||||
if (rover->spawnflags & FF_SOLID)
|
if (rover->spawnflags & FF_SOLID)
|
||||||
rover->flags &= ~FF_SOLID;
|
rover->flags &= ~FF_SOLID;
|
||||||
|
@ -7326,7 +7316,7 @@ static boolean P_FadeFakeFloor(ffloor_t *rover, INT16 destvalue, INT16 speed,
|
||||||
if (rover->spawnflags & FF_BUSTUP)
|
if (rover->spawnflags & FF_BUSTUP)
|
||||||
rover->flags &= ~FF_BUSTUP;
|
rover->flags &= ~FF_BUSTUP;
|
||||||
}
|
}
|
||||||
else // keep interaction during fade
|
else // keep collision during fade
|
||||||
{
|
{
|
||||||
if (rover->spawnflags & FF_SOLID)
|
if (rover->spawnflags & FF_SOLID)
|
||||||
rover->flags |= FF_SOLID;
|
rover->flags |= FF_SOLID;
|
||||||
|
|
Loading…
Reference in a new issue