mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-01 01:07:51 -04:00
make fabs explicitly float
This commit is contained in:
parent
aca31e8222
commit
19b743bef3
@ -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.
|
||||
|
Loading…
x
Reference in New Issue
Block a user