A_Boss1Laser (pinch phase): Reset var1 to locvar1 each time so we don't accidentally spawn koopas (or something else) as a result of hitting enemies with the laser

This commit is contained in:
Monster Iestyn 2020-09-26 17:31:49 +01:00
parent 060f46653d
commit ddd59a6e9d

View file

@ -3040,11 +3040,11 @@ void A_Boss1Laser(mobj_t *actor)
z = actor->z + FixedMul(56*FRACUNIT, actor->scale); z = actor->z + FixedMul(56*FRACUNIT, actor->scale);
break; break;
case 2: case 2:
var2 = 3; // Fire middle laser var1 = locvar1; var2 = 3; // Fire middle laser
A_Boss1Laser(actor); A_Boss1Laser(actor);
var2 = 0; // Fire left laser var1 = locvar1; var2 = 0; // Fire left laser
A_Boss1Laser(actor); A_Boss1Laser(actor);
var2 = 1; // Fire right laser var1 = locvar1; var2 = 1; // Fire right laser
A_Boss1Laser(actor); A_Boss1Laser(actor);
return; return;
break; break;