mirror of
https://git.do.srb2.org/STJr/SRB2.git
synced 2025-03-09 10:52:14 +00:00
Do not speed up underwater/heatwave effect in OpenGL
This commit is contained in:
parent
cd70b499bd
commit
56c0c1f415
1 changed files with 1 additions and 11 deletions
|
@ -6711,7 +6711,6 @@ void HWR_DoPostProcessor(player_t *player)
|
||||||
// 10 by 10 grid. 2 coordinates (xy)
|
// 10 by 10 grid. 2 coordinates (xy)
|
||||||
float v[SCREENVERTS][SCREENVERTS][2];
|
float v[SCREENVERTS][SCREENVERTS][2];
|
||||||
static double disStart = 0;
|
static double disStart = 0;
|
||||||
static fixed_t last_fractime = 0;
|
|
||||||
|
|
||||||
UINT8 x, y;
|
UINT8 x, y;
|
||||||
INT32 WAVELENGTH;
|
INT32 WAVELENGTH;
|
||||||
|
@ -6743,16 +6742,7 @@ void HWR_DoPostProcessor(player_t *player)
|
||||||
}
|
}
|
||||||
HWD.pfnPostImgRedraw(v);
|
HWD.pfnPostImgRedraw(v);
|
||||||
if (!(paused || P_AutoPause()))
|
if (!(paused || P_AutoPause()))
|
||||||
disStart += 1;
|
disStart += FIXED_TO_FLOAT(renderdeltatics);
|
||||||
if (renderdeltatics > FRACUNIT)
|
|
||||||
{
|
|
||||||
disStart = disStart - FIXED_TO_FLOAT(last_fractime) + 1 + FIXED_TO_FLOAT(rendertimefrac);
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
disStart = disStart - FIXED_TO_FLOAT(last_fractime) + FIXED_TO_FLOAT(rendertimefrac);
|
|
||||||
}
|
|
||||||
last_fractime = rendertimefrac;
|
|
||||||
|
|
||||||
// Capture the screen again for screen waving on the intermission
|
// Capture the screen again for screen waving on the intermission
|
||||||
if(gamestate != GS_INTERMISSION)
|
if(gamestate != GS_INTERMISSION)
|
||||||
|
|
Loading…
Reference in a new issue