mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2025-10-30 08:01:28 +00:00
Re-render lighting when setting FF_EXISTS
This commit is contained in:
parent
47dce92d8b
commit
b74fa1e9c8
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;
|
rover->flags &= ~FF_EXISTS;
|
||||||
else
|
else
|
||||||
rover->flags |= FF_EXISTS;
|
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)
|
if (dotranslucent)
|
||||||
|
|
@ -7588,7 +7592,13 @@ static boolean P_FadeFakeFloor(ffloor_t *rover, INT16 destvalue, INT16 speed,
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
if (doexists && !(rover->spawnflags & FF_BUSTUP))
|
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;
|
rover->flags |= FF_EXISTS;
|
||||||
|
}
|
||||||
|
|
||||||
if (dotranslucent)
|
if (dotranslucent)
|
||||||
{
|
{
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue