Fixed crash when switching teams while in PB explosion

main
DodoBirb 3 years ago
parent 3e27a11d3a
commit fce80c9ac1

@ -1,4 +1,4 @@
if (other.sax != global.sax && invincible == 0 && canbehit && state != IDLE && state != SAVING && state != SAVINGFX && state != SAVINGSHIPFX && state != SAVINGSHIP && state != ELEVATOR && state != GFELEVATOR)
if (other.sax != global.sax && invincible == 0 && canbehit && state != IDLE && state != SAVING && state != SAVINGFX && state != SAVINGSHIPFX && state != SAVINGSHIP && state != ELEVATOR && state != GFELEVATOR && other.myid != 0)
{
pbomb_drain = 2
if (!global.spectator)

@ -1,11 +1,15 @@
if (special == 0)
{
instance_create(x, y, oPBombExpl)
expl = instance_create(x, y, oPBombExpl)
expl.myid = 0
expl = instance_create(x, y, oPBombExpl)
expl.myid = 0
expl.image_angle = 90
expl = instance_create(x, y, oPBombExpl)
expl.myid = 0
expl.image_angle = 180
expl = instance_create(x, y, oPBombExpl)
expl.myid = 0
expl.image_angle = 270
sfx_play(sndPBombExpl)
}

Loading…
Cancel
Save