make fabs explicitly float

This commit is contained in:
David Rose 2003-01-17 17:41:49 +00:00
parent aca31e8222
commit 19b743bef3

View File

@ -249,7 +249,7 @@ load_gridded_models(WindowFramework *window,
}
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
// graph as we go.