2
0
Эх сурвалжийг харах

filename case problems and float/double confusion

David Rose 22 жил өмнө
parent
commit
7cf30f0bfa

+ 2 - 2
panda/src/collide/collisionHandlerGravity.cxx

@@ -16,7 +16,7 @@
 //
 ////////////////////////////////////////////////////////////////////
 
-#include "CollisionHandlerGravity.h"
+#include "collisionHandlerGravity.h"
 #include "collisionNode.h"
 #include "collisionEntry.h"
 #include "config_collide.h"
@@ -118,7 +118,7 @@ handle_entries() {
           if (_current_velocity > 0.0f || adjust < -0.001f) {
             // ...we have a vertical thrust,
             // ...or the node is above the floor, so it is airborne.
-            float dt = min(ClockObject::get_global_clock()->get_dt(), 0.1f);
+            float dt = min(ClockObject::get_global_clock()->get_dt(), 0.1);
             // The sign in this equation is reversed from normal.  This is
             // because _current_velocity is a scaler and the equation normally
             // has a vector.  I suppose the sign of _gravity could have been

+ 1 - 1
panda/src/collide/collisionHandlerGravity.h

@@ -85,7 +85,7 @@ private:
   static TypeHandle _type_handle;
 };
 
-#include "CollisionHandlerGravity.I"
+#include "collisionHandlerGravity.I"
 
 #endif