Skip to content

Commit

Permalink
cgame: Remove unnecessary skeleton copy in buildable code
Browse files Browse the repository at this point in the history
R_BuildSkeleton will overwrite anything we copy so there is no point.
  • Loading branch information
DolceTriade committed Oct 13, 2017
1 parent 27b01a7 commit b8ae3d1
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions src/cgame/cg_buildable.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -871,8 +871,6 @@ static void CG_SetBuildableLerpFrameAnimation( buildable_t buildable, lerpFrame_
{
if ( bSkeleton.type != refSkeletonType_t::SK_INVALID )
{
oldbSkeleton = bSkeleton;

if ( lf->old_animation != nullptr && lf->old_animation->handle )
{
if ( !trap_R_BuildSkeleton( &oldbSkeleton, lf->old_animation->handle, lf->oldFrame, lf->frame, lf->blendlerp, lf->old_animation->clearOrigin ) )
Expand Down

0 comments on commit b8ae3d1

Please sign in to comment.