Skip to content

Commit

Permalink
Fixed bug that left/right hand are shown at invalid location when pla…
Browse files Browse the repository at this point in the history
…yer doesn't have anything
  • Loading branch information
yvt committed Aug 27, 2013
1 parent 81c4133 commit 9a096f3
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion Sources/Client/Client.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1515,6 +1515,8 @@ namespace spades {
}

Vector3 leftHand, rightHand;
leftHand = MakeVector3(0, 0, 0);
rightHand = MakeVector3(0, 0, 0);

// view weapon
float sprint = SmoothStep(sprintState);
Expand Down Expand Up @@ -1963,7 +1965,8 @@ namespace spades {
}

// view hands
{
if(leftHand.GetPoweredLength() > 0.001f &&
rightHand.GetPoweredLength() > 0.001f){


ModelRenderParam param;
Expand Down

0 comments on commit 9a096f3

Please sign in to comment.