summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorStreusel <streusel@gravity.co.kr>2015-05-15 23:32:09 -0700
committerStreusel <streusel@gravity.co.kr>2015-05-15 23:32:09 -0700
commitc9f845f4518fc3626d9bc2f7166db5a2ac620a57 (patch)
tree23d2fbb75d35b101c8dcb1460ad20f1637b52c78 /src
parentb5915307d91b8bd31c554c60b57791383f88edda (diff)
downloadhercules-c9f845f4518fc3626d9bc2f7166db5a2ac620a57.tar.gz
hercules-c9f845f4518fc3626d9bc2f7166db5a2ac620a57.tar.bz2
hercules-c9f845f4518fc3626d9bc2f7166db5a2ac620a57.tar.xz
hercules-c9f845f4518fc3626d9bc2f7166db5a2ac620a57.zip
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.
Diffstat (limited to 'src')
-rw-r--r--src/map/script.c23
1 files changed, 2 insertions, 21 deletions
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]