summaryrefslogtreecommitdiff
path: root/src/game
diff options
context:
space:
mode:
authorTim Angus <tim@ngus.net>2011-01-23 22:04:54 +0000
committerTim Angus <tim@ngus.net>2013-01-03 00:17:53 +0000
commit6e385b56dcf6ac7673808e4a9000bba83935f691 (patch)
tree12bc2446342a1963f9e4053dca143bf184d8d9ec /src/game
parent79c4a4da68b6de0f8e58eb7191b18bf35402c2f6 (diff)
* Fix float literal formatting
Diffstat (limited to 'src/game')
-rw-r--r--src/game/bg_pmove.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/game/bg_pmove.c b/src/game/bg_pmove.c
index b1bccec2..39d2317c 100644
--- a/src/game/bg_pmove.c
+++ b/src/game/bg_pmove.c
@@ -2139,9 +2139,7 @@ static void PM_GroundClimbTrace( void )
pm->ps->eFlags |= EF_WALLCLIMB;
//if we're not stuck to the ceiling then set grapplePoint to be a surface normal
- //use VectorCompareEpsilon here to prevent a bug where differences in fp precision
- //lead to taking crossproducts that give all-zero normals
- if( !VectorCompareEpsilon( trace.plane.normal, ceilingNormal, .000001f ) )
+ if( !VectorCompareEpsilon( trace.plane.normal, ceilingNormal, 0.000001f ) )
{
//so we know what surface we're stuck to
VectorCopy( trace.plane.normal, pm->ps->grapplePoint );