mirror of
https://git.do.srb2.org/STJr/SRB2.git
synced 2025-03-23 11:21:01 +00:00
Fix flickering plane interpolation for OpenGL in the exact same way
Funny OpenGL renderer being at least 50% copy-pasted Software code :)
This commit is contained in:
parent
b98207035d
commit
2f46725984
1 changed files with 17 additions and 2 deletions
|
@ -2997,6 +2997,7 @@ static void HWR_Subsector(size_t num)
|
|||
INT32 light = 0;
|
||||
extracolormap_t *floorcolormap;
|
||||
extracolormap_t *ceilingcolormap;
|
||||
ffloor_t *rover;
|
||||
|
||||
#ifdef PARANOIA //no risk while developing, enough debugging nights!
|
||||
if (num >= addsubsector)
|
||||
|
@ -3054,7 +3055,22 @@ static void HWR_Subsector(size_t num)
|
|||
|
||||
if (gl_frontsector->ffloors)
|
||||
{
|
||||
if (gl_frontsector->moved)
|
||||
boolean anyMoved = gl_frontsector->moved;
|
||||
|
||||
if (anyMoved == false)
|
||||
{
|
||||
for (rover = gl_frontsector->ffloors; rover; rover = rover->next)
|
||||
{
|
||||
sector_t *controlSec = §ors[rover->secnum];
|
||||
if (controlSec->moved == true)
|
||||
{
|
||||
anyMoved = true;
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if (anyMoved == true)
|
||||
{
|
||||
gl_frontsector->numlights = sub->sector->numlights = 0;
|
||||
R_Prep3DFloors(gl_frontsector);
|
||||
|
@ -3133,7 +3149,6 @@ static void HWR_Subsector(size_t num)
|
|||
if (gl_frontsector->ffloors)
|
||||
{
|
||||
/// \todo fix light, xoffs, yoffs, extracolormap ?
|
||||
ffloor_t * rover;
|
||||
for (rover = gl_frontsector->ffloors;
|
||||
rover; rover = rover->next)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue