Skip to content

Commit a8695c5

Browse files
authored
Merge pull request #702 from JoshSanch/OOBState
zEntPlayerOOBState: Match Progress
2 parents 7826fc3 + 0d8b23f commit a8695c5

File tree

7 files changed

+1195
-262
lines changed

7 files changed

+1195
-262
lines changed

configure.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -573,7 +573,7 @@ def MatchingFor(*versions):
573573
Object(Matching, "SB/Core/x/xVolume.cpp"),
574574
Object(NonMatching, "SB/Core/x/xParEmitterType.cpp"),
575575
Object(Matching, "SB/Core/x/xRenderState.cpp"),
576-
Object(NonMatching, "SB/Game/zEntPlayerOOBState.cpp"),
576+
Object(NonMatching, "SB/Game/zEntPlayerOOBState.cpp", extra_cflags=["-sym on"]),
577577
Object(Equivalent, "SB/Core/x/xClumpColl.cpp"),
578578
Object(NonMatching, "SB/Core/x/xEntBoulder.cpp"),
579579
Object(NonMatching, "SB/Core/x/xGrid.cpp"),

src/SB/Core/x/xMath2.h

Lines changed: 16 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -55,9 +55,22 @@ struct xVec2
5555
xVec2& assign(F32 x, F32 y);
5656
F32 length() const;
5757
F32 length2() const;
58-
F32 normal() const;
59-
xVec2& normalize();
60-
F32 dot(const xVec2&) const;
58+
xVec2 normal() const
59+
{
60+
xVec2 tmp = *this;
61+
return tmp.normalize();
62+
}
63+
64+
xVec2& normalize()
65+
{
66+
*this /= length();
67+
return *this;
68+
}
69+
70+
F32 dot(const xVec2& b) const
71+
{
72+
return (x * b.x) + (y * b.y);
73+
}
6174

6275
xVec2& operator=(F32);
6376
xVec2 operator*(F32) const;

src/SB/Game/zEntPlayer.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -411,6 +411,7 @@ void zEntPlayer_Init(xEnt* ent, xEntAsset* asset);
411411
void zEntPlayerExit(xEnt*);
412412
void zEntPlayerPreReset();
413413
void zEntPlayerReset(xEnt* ent);
414+
void zEntPlayerUpdateModel();
414415
void zEntPlayer_LoadSounds();
415416
void zEntPlayer_UnloadSounds();
416417
void zEntPlayer_ShadowModelEnable();

0 commit comments

Comments
 (0)