Explorar o código

make fabs explicitly float

David Rose %!s(int64=23) %!d(string=hai) anos
pai
achega
19b743bef3
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      panda/src/testbed/pgrid.cxx

+ 1 - 1
panda/src/testbed/pgrid.cxx

@@ -249,7 +249,7 @@ load_gridded_models(WindowFramework *window,
   }
   }
   
   
   grid_pos_offset = -gridwidth*GRIDCELLSIZE/2.0;
   grid_pos_offset = -gridwidth*GRIDCELLSIZE/2.0;
-  wander_area_pos_offset = -max(fabs(grid_pos_offset), MIN_WANDERAREA_DIMENSION/2.0f);
+  wander_area_pos_offset = -max((float)fabs(grid_pos_offset), MIN_WANDERAREA_DIMENSION/2.0f);
 
 
   // Now walk through the list again, copying models into the scene
   // Now walk through the list again, copying models into the scene
   // graph as we go.
   // graph as we go.