Skip to content

Commit

Permalink
Update studio.h constants (#898)
Browse files Browse the repository at this point in the history
* Update studio.h file, magic number change
- Updated studio.h header, limits increased according to engine ones, added missing structures (in case of)
  • Loading branch information
dystopm authored Nov 28, 2023
1 parent d135a67 commit f882e81
Show file tree
Hide file tree
Showing 2 changed files with 293 additions and 150 deletions.
4 changes: 2 additions & 2 deletions regamedll/dlls/animation.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ server_studio_api_t IEngineStudio;
studiohdr_t *g_pstudiohdr;

float (*g_pRotationMatrix)[3][4];
float (*g_pBoneTransform)[128][3][4];
float (*g_pBoneTransform)[MAXSTUDIOBONES][3][4];

int ExtractBbox(void *pmodel, int sequence, float *mins, float *maxs)
{
Expand Down Expand Up @@ -537,7 +537,7 @@ C_DLLEXPORT int Server_GetBlendingInterface(int version, struct sv_blending_inte
IEngineStudio.Mod_Extradata = ((struct server_studio_api_s *)pstudio)->Mod_Extradata;

g_pRotationMatrix = (float (*)[3][4])rotationmatrix;
g_pBoneTransform = (float (*)[128][3][4])bonetransform;
g_pBoneTransform = (float (*)[MAXSTUDIOBONES][3][4])bonetransform;

return 1;
}
Expand Down
Loading

0 comments on commit f882e81

Please sign in to comment.