Fix crash if divine sprite is activated from the menu.

This commit is contained in:
Mari the Deer 2022-04-17 19:48:02 +02:00
commit 83d28ced6e
2 changed files with 3 additions and 3 deletions

View file

@ -1,3 +1,3 @@
[default]
SWWM_MODVER="\cyDEMOLITIONIST \cw1.3pre r35 \cu(Sun 17 Apr 13:27:37 CEST 2022)\c-";
SWWM_SHORTVER="\cw1.3pre r35 \cu(2022-04-17 13:27:37)\c-";
SWWM_MODVER="\cyDEMOLITIONIST \cw1.3pre r36 \cu(Sun 17 Apr 19:48:02 CEST 2022)\c-";
SWWM_SHORTVER="\cw1.3pre r36 \cu(2022-04-17 19:48:02)\c-";

View file

@ -34,7 +34,7 @@ extend Class SWWMHandler
{
PPShader.SetEnabled("DivineShader",true);
PPShader.SetUniform1f("DivineShader","timer",(gametic+e.FracTic)/GameTicRate);
double str = clamp((divi.AlphInter.GetValue()-1000.)/6000.,0.,1.)**2.;
double str = divi.AlphInter?(clamp((divi.AlphInter.GetValue()-1000.)/6000.,0.,1.)**2.):0.;
PPShader.SetUniform1f("DivineShader","str",str);
}
else PPShader.SetEnabled("DevastationShader",false);