Make screen flashes additive like in Unreal.

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

View file

@ -1,3 +1,3 @@
[default]
SWWM_MODVER="\cyDEMOLITIONIST \cw1.3pre r46 \cu(Fri 22 Apr 12:40:00 CEST 2022)\c-";
SWWM_SHORTVER="\cw1.3pre r46 \cu(2022-04-22 12:40:00)\c-";
SWWM_MODVER="\cyDEMOLITIONIST \cw1.3pre r47 \cu(Fri 22 Apr 12:51:02 CEST 2022)\c-";
SWWM_SHORTVER="\cw1.3pre r47 \cu(2022-04-22 12:51:02)\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);
}
}