Skip to content

Commit 18bbd3f

Browse files
authored
zNPCTypeTiki: Progress (#707)
* zNPCTypeTiki: Progress * Regression fix attempt
1 parent 007c6a9 commit 18bbd3f

File tree

4 files changed

+141
-149
lines changed

4 files changed

+141
-149
lines changed

configure.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -558,7 +558,7 @@ def MatchingFor(*versions):
558558
Object(NonMatching, "SB/Game/zNPCTypeRobot.cpp"),
559559
Object(NonMatching, "SB/Game/zNPCTypeVillager.cpp"),
560560
Object(NonMatching, "SB/Game/zNPCTypeAmbient.cpp"),
561-
Object(NonMatching, "SB/Game/zNPCTypeTiki.cpp"),
561+
Object(NonMatching, "SB/Game/zNPCTypeTiki.cpp", extra_cflags=["-sym on"]),
562562
Object(NonMatching, "SB/Core/x/xBehaveMgr.cpp"),
563563
Object(Matching, "SB/Core/x/xBehaviour.cpp", extra_cflags=["-sym on"]),
564564
Object(Matching, "SB/Core/x/xBehaveGoalSimple.cpp", extra_cflags=["-sym on"]),

src/SB/Game/zEntPlayer.cpp

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -2312,8 +2312,6 @@ static U32 BounceCheck(xAnimTransition*, xAnimSingle*, void*)
23122312
return globals.player.Bounced == 1;
23132313
}
23142314

2315-
2316-
23172315
// Equivalent: sda relocation scheduling + regswap
23182316
static U32 BounceCB(xAnimTransition*, xAnimSingle*, void*)
23192317
{
@@ -3530,7 +3528,6 @@ static U32 LassoSwingReleaseCB(xAnimTransition* tran, xAnimSingle* anim, void* o
35303528
return 0;
35313529
}
35323530

3533-
35343531
static U8 StunBubbleTrail(xAnimSingle* anim)
35353532
{
35363533
S32 ret = 0;
@@ -3570,7 +3567,6 @@ static U8 BubbleBounceContrails(xAnimSingle* anim)
35703567
return ret;
35713568
}
35723569

3573-
35743570
static U32 StunStartFallCB(xAnimTransition*, xAnimSingle*, void*)
35753571
{
35763572
stun_power_tmr = 0;
@@ -3624,8 +3620,6 @@ static S32 MeleeAttackBoundCollide(xEnt* ent, zScene* zscn, xBound* meleeB)
36243620
return cbdata.hitsomething;
36253621
}
36263622

3627-
3628-
36293623
static S32 CheckObjectAgainstMeleeBound(xEnt* ent, void* data)
36303624
{
36313625
return 0;
@@ -3709,10 +3703,6 @@ static U32 count_talk_anims(xAnimTable* anims)
37093703
return talkAnimCount;
37103704
}
37113705

3712-
3713-
3714-
3715-
37163706
static void load_player_ini(zPlayerSettings& ps, xModelInstance& model, xModelAssetParam* modelass,
37173707
U32 params_size)
37183708
{
@@ -7579,12 +7569,6 @@ WEAK xVec3* NPCC_upDir(xEnt* ent)
75797569
return (xVec3*)&ent->model->Mat->up;
75807570
}
75817571

7582-
WEAK S32 zGooIs(xEnt* ent)
7583-
{
7584-
F32 temp;
7585-
return zGooIs(ent, temp, 0);
7586-
}
7587-
75887572
WEAK S32 zNPCCommon::SetCarryState(en_NPC_CARRY_STATE)
75897573
{
75907574
return 0;

src/SB/Game/zGoo.h

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,11 @@ void zGooInit(S32 nobj);
1010
void zGooExit();
1111
S32 zGooAdd(xEnt* obj, F32 depth, S32 freezeGroup);
1212
S32 zGooIs(xEnt* obj, F32& depth, U32 playerCheck);
13+
inline S32 zGooIs(xEnt* ent)
14+
{
15+
F32 temp;
16+
return zGooIs(ent, temp, 0);
17+
};
1318
void zGooCollsBegin();
1419
void zGooCollsEnd();
1520
void zGooStopTide();

0 commit comments

Comments
 (0)