Backported changes from experimental branch.

Fixed crash on screen flashes due to misuse of StaticEventHandler.Find instead of EventHandler.Find (oops).
This commit is contained in:
Marisa the Magician 2019-02-08 14:43:39 +01:00
commit d69eaa682f
8 changed files with 60 additions and 18 deletions

View file

@ -264,10 +264,10 @@ Class BioGel : Actor
for ( int i=0; i<numpt; i++ )
{
Vector3 pvel = (FRandom[GES](-1,1),FRandom[GES](-1,1),FRandom[GES](-1,1)).unit()*FRandom[GES](1,3);
Vector3 spos = pos;
if ( atplane == 1 ) spos += Normal*2;
Vector3 spos = pos+normal*2*scale.x;
let s = Spawn("BioSpark",spos);
s.vel = pvel;
if ( normal != (0,0,0) ) s.vel += normal*2;
}
}
if ( deadtimer <= -1 ) return;