mirror of
https://git.do.srb2.org/STJr/SRB2.git
synced 2024-11-15 09:11:48 +00:00
Wait, no, I'm an idiot.
This commit is contained in:
parent
2eb8e6be49
commit
9d442ae6ea
2 changed files with 5 additions and 5 deletions
|
@ -3457,8 +3457,8 @@ void A_BossZoom(mobj_t *actor)
|
|||
// Description: Spawns explosions and plays appropriate sounds around the defeated boss.
|
||||
//
|
||||
// var1:
|
||||
// 0 - Use movecount to spawn explosions evenly
|
||||
// 1 - Use P_Random to spawn explosions at complete random
|
||||
// & 1 - Use P_Random to spawn explosions at complete random
|
||||
// & 2 - Use entire vertical range of object to spawn
|
||||
// var2 = Object to spawn. Default is MT_SONIC3KBOSSEXPLODE.
|
||||
//
|
||||
void A_BossScream(mobj_t *actor)
|
||||
|
@ -3475,13 +3475,13 @@ void A_BossScream(mobj_t *actor)
|
|||
return;
|
||||
#endif
|
||||
if (locvar1 & 1)
|
||||
fa = (FixedAngle(P_RandomKey(360)*FRACUNIT)>>ANGLETOFINESHIFT) & FINEMASK;
|
||||
else
|
||||
{
|
||||
actor->movecount += 4*16;
|
||||
actor->movecount %= 360;
|
||||
fa = (FixedAngle(actor->movecount*FRACUNIT)>>ANGLETOFINESHIFT) & FINEMASK;
|
||||
}
|
||||
else
|
||||
fa = (FixedAngle(P_RandomKey(360)*FRACUNIT)>>ANGLETOFINESHIFT) & FINEMASK;
|
||||
x = actor->x + FixedMul(FINECOSINE(fa),actor->radius);
|
||||
y = actor->y + FixedMul(FINESINE(fa),actor->radius);
|
||||
|
||||
|
|
|
@ -6001,7 +6001,7 @@ static void P_Boss9Thinker(mobj_t *mobj)
|
|||
|
||||
if (mobj->health <= mobj->info->damage && mobj->fuse && !(mobj->fuse%TICRATE))
|
||||
{
|
||||
var1 = 0;
|
||||
var1 = 1;
|
||||
var2 = 0;
|
||||
A_BossScream(mobj);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue