mirror of
https://github.com/nzp-team/glquake.git
synced 2024-11-24 21:11:53 +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 {
|
||||
// Fade In
|
||||
if (percentage_complete < 0.5) {
|
||||
flash_alpha = (float)percentage_complete;
|
||||
flash_alpha = (float)percentage_complete*2;
|
||||
}
|
||||
// Fade Out
|
||||
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!
|
||||
if (screenflash_duration > sv.time)
|
||||
HUD_Screenflash();
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue