Make screen flashes additive like in Unreal.
This commit is contained in:
parent
bcc397c9f3
commit
e17837d034
2 changed files with 3 additions and 3 deletions
|
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue