Skip to content

Commit

Permalink
Fix #551
Browse files Browse the repository at this point in the history
Thanks @kmsiapps for pointing this out!
  • Loading branch information
yvt committed Feb 10, 2017
1 parent 812a30b commit 38529b7
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Sources/Client/Player.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -744,7 +744,8 @@ namespace spades {
Vector3 rec = weapon->GetRecoil();
float upLimit = Vector3::Dot(GetFront2D(), o);
upLimit -= 0.03f; // ???
o += GetUp() * std::min(rec.y, std::max(0.f, upLimit));
o += GetUp() * std::min(rec.y, std::max(0.f, upLimit)) *
(input.crouch ? 0.5f : 1.0f);
o += GetRight() * rec.x * sinf(world->GetTime() * 10.f);
o = o.Normalize();
SetOrientation(o);
Expand Down

0 comments on commit 38529b7

Please sign in to comment.