Skip to content

Commit e22843a

Browse files
committedDec 10, 2024
Fixed an issue that size_of_frame was not found on engine 8684.
1 parent 78905e0 commit e22843a

File tree

3 files changed

+13
-1
lines changed

3 files changed

+13
-1
lines changed
 

‎Plugins/BulletPhysics/BaseRagdollObject.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -290,7 +290,7 @@ void CBaseRagdollObject::Update(CPhysicObjectUpdateContext* ObjectUpdateContext)
290290
if (!CalculateOverrideActivityType(playerState, &iNewActivityType, &iNewAnimControlFlags))
291291
{
292292
StudioGetActivityType(m_model, playerState, &iNewActivityType, &iNewAnimControlFlags);
293-
}
293+
}
294294

295295
if (m_playerindex == m_entindex)
296296
{

‎Plugins/BulletPhysics/privatehook.cpp

+6
Original file line numberDiff line numberDiff line change
@@ -835,6 +835,11 @@ void Engine_FillAddreess(void)
835835

836836
if (1)
837837
{
838+
if (g_dwEngineBuildnum <= 8684)
839+
{
840+
size_of_frame = 0x42B8;
841+
}
842+
838843
typedef struct
839844
{
840845
int disableFog_instcount;
@@ -936,6 +941,7 @@ void Engine_FillAddreess(void)
936941

937942
Sig_VarNotFound(cl_frames);
938943
Sig_VarNotFound(cl_parsecount);
944+
Sig_VarNotFound(size_of_frame);
939945
}
940946

941947
if (1)

‎Plugins/Renderer/gl_hooks.cpp

+6
Original file line numberDiff line numberDiff line change
@@ -3732,6 +3732,11 @@ void R_FillAddress(void)
37323732

37333733
if (1)
37343734
{
3735+
if (g_dwEngineBuildnum <= 8684)
3736+
{
3737+
size_of_frame = 0x42B8;
3738+
}
3739+
37353740
typedef struct
37363741
{
37373742
int disableFog_instcount;
@@ -4055,6 +4060,7 @@ void R_FillAddress(void)
40554060
Sig_VarNotFound(r_blend);
40564061
Sig_VarNotFound(cl_frames);
40574062
Sig_VarNotFound(cl_parsecount);
4063+
Sig_VarNotFound(size_of_frame);
40584064
Sig_FuncNotFound(ClientDLL_DrawTransparentTriangles);
40594065

40604066
if (ctx.r_entorigin_candidate_count >= 2)

0 commit comments

Comments
 (0)