Fix SCREENFLASH_FADE_INANDOUT updating too slow

This commit is contained in:
cypress 2024-01-14 21:21:42 -05:00 committed by GitHub
parent 81c7a5668e
commit a281aac7b0
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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();
} }