Permalink
Browse files

Fix a division by zero bug.

  • Loading branch information...
enneract committed Dec 20, 2015
1 parent abb451a commit 889c32cfbd7a994d2676adb04a0a4c67fffc6044
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/shared/bg_pmove.cpp
@@ -1234,7 +1234,7 @@ static bool PM_CheckWallRun()
normal = Vec3::Load( trace.plane.normal );
velocity = Vec3::Load( pm->ps->velocity );

velocity += Math::Normalize( ( normal + Vec3(0,0,1) ) ) * jumpMag;
velocity += Math::Normalize( normal + Vec3( 0, 0, 0.9 ) ) * jumpMag;

velocity.Store( pm->ps->velocity );
PM_AddEvent( EV_JUMP );

0 comments on commit 889c32c

Please sign in to comment.