From 9a096f3b757cf75fafd05bca18006837336012ee Mon Sep 17 00:00:00 2001 From: yvt Date: Tue, 27 Aug 2013 23:23:34 +0900 Subject: [PATCH] Fixed bug that left/right hand are shown at invalid location when player doesn't have anything --- Sources/Client/Client.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Sources/Client/Client.cpp b/Sources/Client/Client.cpp index 8b1bfe87b..cfb10d94e 100644 --- a/Sources/Client/Client.cpp +++ b/Sources/Client/Client.cpp @@ -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;