mirror of
https://git.do.srb2.org/STJr/SRB2.git
synced 2025-01-31 05:30:48 +00:00
Re-render lighting when setting FF_EXISTS
This commit is contained in:
parent
069cc480c1
commit
81acf82e99
1 changed files with 10 additions and 0 deletions
10
src/p_spec.c
10
src/p_spec.c
|
@ -7547,6 +7547,10 @@ static boolean P_FadeFakeFloor(ffloor_t *rover, INT16 destvalue, INT16 speed,
|
|||
rover->flags &= ~FF_EXISTS;
|
||||
else
|
||||
rover->flags |= FF_EXISTS;
|
||||
|
||||
// Re-render lighting at end of fade
|
||||
if (dolighting && !(rover->spawnflags & FF_NOSHADE) && !(rover->flags & FF_EXISTS))
|
||||
rover->target->moved = true;
|
||||
}
|
||||
|
||||
if (dotranslucent)
|
||||
|
@ -7588,7 +7592,13 @@ static boolean P_FadeFakeFloor(ffloor_t *rover, INT16 destvalue, INT16 speed,
|
|||
else
|
||||
{
|
||||
if (doexists && !(rover->spawnflags & FF_BUSTUP))
|
||||
{
|
||||
// Re-render lighting if we haven't yet set FF_EXISTS (beginning of fade)
|
||||
if (dolighting && !(rover->spawnflags & FF_NOSHADE) && !(rover->flags & FF_EXISTS))
|
||||
rover->target->moved = true;
|
||||
|
||||
rover->flags |= FF_EXISTS;
|
||||
}
|
||||
|
||||
if (dotranslucent)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue