mirror of
https://github.com/nzp-team/fteqw.git
synced 2024-11-26 22:01:50 +00:00
vid_hardware gamma should be more consistant now.
git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@295 fc73d0e0-1445-4013-8a0c-d673dee63da5
This commit is contained in:
parent
c7c0246eb4
commit
70ab01cb49
1 changed files with 17 additions and 15 deletions
|
@ -627,6 +627,7 @@ V_UpdatePalette
|
||||||
*/
|
*/
|
||||||
void GLV_UpdatePalette (void)
|
void GLV_UpdatePalette (void)
|
||||||
{
|
{
|
||||||
|
qboolean ogw;
|
||||||
int i, j;
|
int i, j;
|
||||||
qboolean new;
|
qboolean new;
|
||||||
// qbyte *basepal, *newpal;
|
// qbyte *basepal, *newpal;
|
||||||
|
@ -637,6 +638,16 @@ void GLV_UpdatePalette (void)
|
||||||
|
|
||||||
V_CalcPowerupCshift ();
|
V_CalcPowerupCshift ();
|
||||||
|
|
||||||
|
// drop the damage value
|
||||||
|
cl.cshifts[CSHIFT_DAMAGE].percent -= host_frametime*150;
|
||||||
|
if (cl.cshifts[CSHIFT_DAMAGE].percent <= 0)
|
||||||
|
cl.cshifts[CSHIFT_DAMAGE].percent = 0;
|
||||||
|
|
||||||
|
// drop the bonus value
|
||||||
|
cl.cshifts[CSHIFT_BONUS].percent -= host_frametime*100;
|
||||||
|
if (cl.cshifts[CSHIFT_BONUS].percent <= 0)
|
||||||
|
cl.cshifts[CSHIFT_BONUS].percent = 0;
|
||||||
|
|
||||||
new = false;
|
new = false;
|
||||||
|
|
||||||
for (i=0 ; i<NUM_CSHIFTS ; i++)
|
for (i=0 ; i<NUM_CSHIFTS ; i++)
|
||||||
|
@ -654,16 +665,6 @@ void GLV_UpdatePalette (void)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// drop the damage value
|
|
||||||
cl.cshifts[CSHIFT_DAMAGE].percent -= host_frametime*150;
|
|
||||||
if (cl.cshifts[CSHIFT_DAMAGE].percent <= 0)
|
|
||||||
cl.cshifts[CSHIFT_DAMAGE].percent = 0;
|
|
||||||
|
|
||||||
// drop the bonus value
|
|
||||||
cl.cshifts[CSHIFT_BONUS].percent -= host_frametime*100;
|
|
||||||
if (cl.cshifts[CSHIFT_BONUS].percent <= 0)
|
|
||||||
cl.cshifts[CSHIFT_BONUS].percent = 0;
|
|
||||||
|
|
||||||
force = V_CheckGamma ();
|
force = V_CheckGamma ();
|
||||||
if (!new && !force)
|
if (!new && !force)
|
||||||
return;
|
return;
|
||||||
|
@ -695,10 +696,11 @@ void GLV_UpdatePalette (void)
|
||||||
ramps[2][i] = gammatable[ib]<<8;
|
ramps[2][i] = gammatable[ib]<<8;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
ogw = gammaworks;
|
||||||
VID_ShiftPalette (NULL);
|
VID_ShiftPalette (NULL);
|
||||||
if (gammaworks)
|
if (ogw != gammaworks)
|
||||||
{
|
{
|
||||||
BuildGammaTable(1,1);
|
Con_DPrintf("Gamma working state %i\n", gammaworks);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Reference in a new issue