mirror of
https://github.com/nzp-team/glquake.git
synced 2025-02-17 17:21:15 +00:00
Fix SCREENFLASH_FADE_INANDOUT updating too slow
This commit is contained in:
parent
81c7a5668e
commit
a281aac7b0
1 changed files with 3 additions and 3 deletions
|
@ -1475,11 +1475,11 @@ void HUD_Screenflash (void)
|
||||||
else {
|
else {
|
||||||
// Fade In
|
// Fade In
|
||||||
if (percentage_complete < 0.5) {
|
if (percentage_complete < 0.5) {
|
||||||
flash_alpha = (float)percentage_complete;
|
flash_alpha = (float)percentage_complete*2;
|
||||||
}
|
}
|
||||||
// Fade Out
|
// Fade Out
|
||||||
else {
|
else {
|
||||||
flash_alpha = invertfloat((float)percentage_complete);
|
flash_alpha = invertfloat((float)percentage_complete)(2;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1570,4 +1570,4 @@ void HUD_Draw (void)
|
||||||
// This should always come last!
|
// This should always come last!
|
||||||
if (screenflash_duration > sv.time)
|
if (screenflash_duration > sv.time)
|
||||||
HUD_Screenflash();
|
HUD_Screenflash();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue