Fixed bug that left/right hand are shown at invalid location when player doesn't have anything

This commit is contained in:
yvt 2013-08-27 23:23:34 +09:00
parent 81c4133264
commit 9a096f3b75

View File

@ -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);
@ -1963,7 +1965,8 @@ namespace spades {
}
// view hands
{
if(leftHand.GetPoweredLength() > 0.001f &&
rightHand.GetPoweredLength() > 0.001f){
ModelRenderParam param;