implementation of round func
This commit is contained in:
parent
5739af6ab8
commit
b2a0e57574
2 changed files with 4 additions and 6 deletions
2
lua.cpp
2
lua.cpp
|
@ -78,7 +78,7 @@ static inline Sound *check_sound(int num) {
|
|||
static inline int check_int(int num) {
|
||||
double val = luaL_check_number(num);
|
||||
|
||||
return int(ROUND(val));
|
||||
return int(round(val));
|
||||
}
|
||||
|
||||
static inline int check_control(int num) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue