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

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