Skip to content

Commit

Permalink
A_Boss1Laser (pinch phase): Reset var1 to locvar1 each time so we don…
Browse files Browse the repository at this point in the history
…'t accidentally spawn koopas (or something else) as a result of hitting enemies with the laser
  • Loading branch information
MonsterIestyn committed Sep 26, 2020
1 parent 060f466 commit ddd59a6
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/p_enemy.c
Original file line number Diff line number Diff line change
Expand Up @@ -3040,11 +3040,11 @@ void A_Boss1Laser(mobj_t *actor)
z = actor->z + FixedMul(56*FRACUNIT, actor->scale);
break;
case 2:
var2 = 3; // Fire middle laser
var1 = locvar1; var2 = 3; // Fire middle laser
A_Boss1Laser(actor);
var2 = 0; // Fire left laser
var1 = locvar1; var2 = 0; // Fire left laser
A_Boss1Laser(actor);
var2 = 1; // Fire right laser
var1 = locvar1; var2 = 1; // Fire right laser
A_Boss1Laser(actor);
return;
break;
Expand Down

0 comments on commit ddd59a6

Please sign in to comment.