mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-02 18:03:56 -04:00
switch floor to cfloor
This commit is contained in:
parent
2d54f59f54
commit
b40105460d
@ -240,7 +240,7 @@ end_array() {
|
||||
bool DCAtomicField::ElementType::
|
||||
format_default_value(double num, string &formatted) const {
|
||||
double real_value = num * _divisor;
|
||||
int int_value = (int)floor(real_value + 0.5);
|
||||
int int_value = (int)cfloor(real_value + 0.5);
|
||||
|
||||
switch (_type) {
|
||||
case ST_int8:
|
||||
|
@ -19,6 +19,7 @@
|
||||
#ifndef DCATOMICFIELD_H
|
||||
#define DCATOMICFIELD_H
|
||||
|
||||
#include <cmath.h>
|
||||
#include "dcbase.h"
|
||||
#include "dcField.h"
|
||||
#include "dcSubatomicType.h"
|
||||
|
Loading…
x
Reference in New Issue
Block a user