mirror of
https://github.com/ZDoom/gzdoom-gles.git
synced 2024-11-10 23:01:59 +00:00
- let blastradius work without an effect actor.
This commit is contained in:
parent
e47f016b23
commit
d739587f6b
1 changed files with 1 additions and 1 deletions
|
@ -60,7 +60,7 @@ extend class Actor
|
||||||
(victim.radius + 1) * cos(ang),
|
(victim.radius + 1) * cos(ang),
|
||||||
(victim.radius + 1) * sin(ang),
|
(victim.radius + 1) * sin(ang),
|
||||||
(victim.Height / 2) - victim.Floorclip);
|
(victim.Height / 2) - victim.Floorclip);
|
||||||
Actor mo = Spawn (blasteffect, spawnpos, ALLOW_REPLACE);
|
Actor mo = blasteffect? Spawn (blasteffect, spawnpos, ALLOW_REPLACE) : null;
|
||||||
if (mo)
|
if (mo)
|
||||||
{
|
{
|
||||||
mo.Vel.XY = victim.Vel.XY;
|
mo.Vel.XY = victim.Vel.XY;
|
||||||
|
|
Loading…
Reference in a new issue