From c9f845f4518fc3626d9bc2f7166db5a2ac620a57 Mon Sep 17 00:00:00 2001 From: Streusel Date: Fri, 15 May 2015 23:32:09 -0700 Subject: Renamed log to log10, as it is creating errors with items called Log. Removed floor() and ceil() as they don't make sense since everything is int to begin with. --- src/map/script.c | 23 ++--------------------- 1 file changed, 2 insertions(+), 21 deletions(-) (limited to 'src/map') diff --git a/src/map/script.c b/src/map/script.c index 03f5b13a3..2ad8bcb25 100644 --- a/src/map/script.c +++ b/src/map/script.c @@ -15477,25 +15477,8 @@ BUILDIN(compare) } // List of mathematics commands ---> -BUILDIN(floor) -{ - double i, a; - i = script_getnum(st,2); - a = floor(i); - script_pushint(st,(int)a); - return true; -} - -BUILDIN(ceil) -{ - double i, a; - i = script_getnum(st,2); - a = ceil(i); - script_pushint(st,(int)a); - return true; -} -BUILDIN(log) +BUILDIN(log10) { double i, a; i = script_getnum(st,2); @@ -20080,9 +20063,7 @@ void script_parse_builtin(void) { BUILDIN_DEF(setiteminfo,"iii"), //[Lupus] set Items Buy / sell Price, etc info BUILDIN_DEF(getequipcardid,"ii"), //[Lupus] returns CARD ID or other info from CARD slot N of equipped item // List of mathematics commands ---> - BUILDIN_DEF(floor,"i"), - BUILDIN_DEF(ceil,"i"), - BUILDIN_DEF(log,"i"), + BUILDIN_DEF(log10,"i"), BUILDIN_DEF(sqrt,"i"), //[zBuffer] BUILDIN_DEF(pow,"ii"), //[zBuffer] BUILDIN_DEF(distance,"iiii"), //[zBuffer] -- cgit v1.2.3-70-g09d2