mirror of
				https://github.com/OpenMW/openmw.git
				synced 2025-10-31 17:26:38 +00:00 
			
		
		
		
	Use std::numeric_limits<float>::epsilon() instead of picking our own epsilon.
This commit is contained in:
		
							parent
							
								
									edf8c3b81c
								
							
						
					
					
						commit
						0037fd78c1
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		|  | @ -214,7 +214,7 @@ namespace MWPhysics | |||
|                 continue; // velocity updated, calculate nextpos again
 | ||||
|             } | ||||
| 
 | ||||
|             if ((newPosition - nextpos).length2() > 0.00001) | ||||
|             if ((newPosition - nextpos).length2() > std::numeric_limits<float>::epsilon()) | ||||
|             { | ||||
|                 // trace to where character would go if there were no obstructions
 | ||||
|                 tracer.doTrace(actor.mCollisionObject, newPosition, nextpos, collisionWorld, actor.mIsOnGround); | ||||
|  |  | |||
		Loading…
	
		Reference in a new issue