Skip to content

Commit

Permalink
Fix SCREENFLASH_FADE_INANDOUT updating too slow
Browse files Browse the repository at this point in the history
  • Loading branch information
MotoLegacy committed Jan 15, 2024
1 parent 7792b98 commit 5bf8349
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions source/cl_hud.c
Original file line number Diff line number Diff line change
Expand Up @@ -1513,11 +1513,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;
}
}

Expand Down

0 comments on commit 5bf8349

Please sign in to comment.