mirror of
https://git.do.srb2.org/STJr/SRB2.git
synced 2024-11-15 17:22:12 +00:00
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:
parent
060f46653d
commit
ddd59a6e9d
1 changed files with 3 additions and 3 deletions
|
@ -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;
|
||||||
|
|
Loading…
Reference in a new issue