Skip to content

Commit

Permalink
move CBezier::DrawSegment() inline declaration to header.
Browse files Browse the repository at this point in the history
  • Loading branch information
gort818 authored and mrwonko committed Mar 26, 2016
1 parent 97d3879 commit 022ffc7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion code/cgame/FxPrimitives.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2102,7 +2102,7 @@ bool CBezier::Update( void )
}

//----------------------------
inline void CBezier::DrawSegment( vec3_t start, vec3_t end, float texcoord1, float texcoord2 )
void CBezier::DrawSegment( vec3_t start, vec3_t end, float texcoord1, float texcoord2 )
{
vec3_t lineDir, cross, viewDir;
static vec3_t lastEnd[2];
Expand Down
4 changes: 2 additions & 2 deletions code/cgame/FxPrimitives.h
Original file line number Diff line number Diff line change
Expand Up @@ -388,7 +388,7 @@ class CBezier : public CLine

virtual bool Update();

void DrawSegment( vec3_t start, vec3_t end, float texcoord1, float texcoord2 );
inline void DrawSegment( vec3_t start, vec3_t end, float texcoord1, float texcoord2 );

inline void SetControlPoints( const vec3_t ctrl1, const vec3_t ctrl2 ) { VectorCopy( ctrl1, mControl1 ); VectorCopy( ctrl2, mControl2 ); }
inline void SetControlVel( const vec3_t ctrl1v, const vec3_t ctrl2v ) { VectorCopy( ctrl1v, mControl1Vel ); VectorCopy( ctrl2v, mControl2Vel ); }
Expand Down Expand Up @@ -590,4 +590,4 @@ class CPoly : public CParticle
};


#endif //FX_PRIMITIVES_H_INC
#endif //FX_PRIMITIVES_H_INC

0 comments on commit 022ffc7

Please sign in to comment.