Skip to content

Commit 10af6fd

Browse files
committed
zNPCGoalAmbient: zNPCGoalJellyAttack fixes
1 parent 2c68e9a commit 10af6fd

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

src/SB/Game/zNPCGoalAmbient.cpp

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -18,11 +18,11 @@ void xMat3x3RMulVec(xVec3* o, const xMat3x3* m, const xVec3* v)
1818

1919
S32 zNPCGoalJellyAttack::Enter(F32 arg0, void* arg1)
2020
{
21-
zNPCJelly* temp_r31 = (zNPCJelly*)psyche->clt_owner;
21+
zNPCJelly* npc = (zNPCJelly*)psyche->clt_owner;
2222

23-
temp_r31->SndPlayRandom(NPC_STYP_ENCOUNTER);
24-
temp_r31->VelStop();
25-
lastAnimTime = 0;
23+
npc->SndPlayRandom(NPC_STYP_ENCOUNTER);
24+
npc->VelStop();
25+
flg_attack = 0;
2626
zNPCGoalJellyAttack::ZapperStart();
2727
return zNPCGoalPushAnim::Enter(arg0, arg1);
2828
}
@@ -41,8 +41,8 @@ S32 zNPCGoalJellyAttack::Process(en_trantype* arg0, F32 arg1, void* arg2, xScene
4141

4242
void zNPCGoalJellyAttack::ZapperStop()
4343
{
44-
zNPC_SNDStop((_tageNPCSnd)4);
45-
for (S32 i = 0; i < 3; ++i)
44+
zNPC_SNDStop(eNPCSnd_JellyfishAttack);
45+
for (S32 i = 0; i < 3; i++)
4646
{
4747
if (zap_lytnin[i] != NULL)
4848
{

src/SB/Game/zNPCGoalAmbient.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,8 @@ struct zNPCGoalJellyBirth : zNPCGoalCommon
2323

2424
struct zNPCGoalJellyAttack : zNPCGoalPushAnim
2525
{
26-
class zLightning* zap_lytnin[3];
27-
U32 lastAnimTime;
26+
S32 flg_attack;
27+
zLightning* zap_lytnin[3];
2828
S32 Enter(F32 dt, void* updCtxt);
2929
S32 Exit(F32 dt, void* updCtxt);
3030
S32 Process(en_trantype* trantyp, F32 dt, void* updCxt, xScene* xscn);

0 commit comments

Comments
 (0)