Skip to content

Commit

Permalink
StudioModelRenderer: Move new methods to end of virtual table
Browse files Browse the repository at this point in the history
To make openag more binary compatible with original hl1 client
  • Loading branch information
UnkwUsr authored and YaLTeR committed May 22, 2022
1 parent 679f146 commit 173ebd4
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions cl_dll/StudioModelRenderer.h
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,6 @@ class CStudioModelRenderer
virtual int StudioDrawModel ( int flags );
virtual int StudioDrawPlayer ( int flags, struct entity_state_s *pplayer );

private:
virtual model_t* GetPlayerModel(int player_index);

public:
// Local interfaces
//
Expand All @@ -50,12 +47,6 @@ class CStudioModelRenderer

// Find final attachment points
virtual void StudioCalcAttachments ( void );

// Returns whether StudioAdjustViewmodelAttachments needs to be called for the viewmodel
virtual bool NeedAdjustViewmodelAdjustments();

// Reprojects attachments of the viewmodel if FOV is changed
virtual void StudioAdjustViewmodelAttachments(Vector &vOrigin);

// Save bone matrices and names
virtual void StudioSaveBones( void );
Expand Down Expand Up @@ -110,6 +101,15 @@ class CStudioModelRenderer
// Calculate the viewmodel fov and set the OpenGL projection matrix
virtual void SetViewmodelFovProjection ( void );

// Returns whether StudioAdjustViewmodelAttachments needs to be called for the viewmodel
virtual bool NeedAdjustViewmodelAdjustments();

// Reprojects attachments of the viewmodel if FOV is changed
virtual void StudioAdjustViewmodelAttachments(Vector &vOrigin);

private:
virtual model_t* GetPlayerModel(int player_index);

public:

// Client clock
Expand Down

0 comments on commit 173ebd4

Please sign in to comment.