Make screen flashes additive like in Unreal.

This commit is contained in:
Mari the Deer 2022-04-22 12:51:02 +02:00
commit 74d01da2e8
2 changed files with 3 additions and 3 deletions

View file

@ -1,3 +1,3 @@
[default]
SWWM_MODVER="\cyDEMOLITIONIST \cw1.2.12 r1 \cu(Fri 22 Apr 13:53:17 CEST 2022)\c-";
SWWM_SHORTVER="\cw1.2.12 r1 \cu(2022-04-22 13:53:17)\c-";
SWWM_MODVER="\cyDEMOLITIONIST \cw1.2.13 \cu(Fri 22 Apr 13:53:54 CEST 2022)\c-";
SWWM_SHORTVER="\cw1.2.13 \cu(2022-04-22 13:53:54)\c-";

View file

@ -144,7 +144,7 @@ Class GenericFlash : HUDMessageBase
if ( cam && (players[consoleplayer].camera != cam) ) return;
double fractic = SWWMStatusBar(statusbar)?SWWMStatusBar(statusbar).fractic:0;
double falpha = alpha-fractic*(1./duration);
Screen.Dim(col,(col.a/255.)*falpha*swwm_flashstrength,0,0,Screen.GetWidth(),Screen.GetHeight());
Screen.Dim(col,(col.a/255.)*falpha*swwm_flashstrength,0,0,Screen.GetWidth(),Screen.GetHeight(),STYLE_Add);
}
}