Fix the interp-related Ancient Tomb FOF flickering.

Notably caused by a difference in behaviour between Software and GL that was already resynchronised in the 2.2 codebase.
This commit is contained in:
toaster 2022-08-16 20:08:52 +01:00
parent 9e3fdfeeb7
commit 2733571d27

View file

@ -2468,7 +2468,23 @@ void HWR_Subsector(size_t num)
if (gr_frontsector->ffloors) if (gr_frontsector->ffloors)
{ {
if (gr_frontsector->moved) boolean anyMoved = gr_frontsector->moved;
if (anyMoved == false)
{
for (rover = gr_frontsector->ffloors; rover; rover = rover->next)
{
sector_t *controlSec = &sectors[rover->secnum];
if (controlSec->moved == true)
{
anyMoved = true;
break;
}
}
}
if (anyMoved == true)
{ {
gr_frontsector->numlights = sub->sector->numlights = 0; gr_frontsector->numlights = sub->sector->numlights = 0;
R_Prep3DFloors(gr_frontsector); R_Prep3DFloors(gr_frontsector);