diff options
author | gumi <mekolat@users.noreply.github.com> | 2017-06-05 11:24:45 -0400 |
---|---|---|
committer | gumi <mekolat@users.noreply.github.com> | 2017-06-05 11:24:45 -0400 |
commit | f49984841dc39c63e7a2befd2cef4f88f60cbade (patch) | |
tree | 3337050b4f0c136f3196022533f245e918498c15 | |
parent | cf484334d22f41e3cd881fdc6aedd2df306dd2e0 (diff) | |
download | evol-hercules-f49984841dc39c63e7a2befd2cef4f88f60cbade.tar.gz evol-hercules-f49984841dc39c63e7a2befd2cef4f88f60cbade.tar.bz2 evol-hercules-f49984841dc39c63e7a2befd2cef4f88f60cbade.tar.xz evol-hercules-f49984841dc39c63e7a2befd2cef4f88f60cbade.zip |
remove isstr
-rw-r--r-- | src/emap/init.c | 1 | ||||
-rw-r--r-- | src/emap/script_buildins.c | 15 | ||||
-rw-r--r-- | src/emap/script_buildins.h | 1 |
3 files changed, 0 insertions, 17 deletions
diff --git a/src/emap/init.c b/src/emap/init.c index d46254d..835d8b3 100644 --- a/src/emap/init.c +++ b/src/emap/init.c @@ -165,7 +165,6 @@ HPExport void plugin_init (void) addScriptCommand("failedremovecardsindex", "ii", failedRemoveCardsIndex); addScriptCommand("getcardbyindex", "ii", getCardByIndex); addScriptCommand("removecardbyindex", "ii", removeCardByIndex); - addScriptCommand("isstr", "v", isStr); addScriptCommand("setbgteam", "ii", setBgTeam); addScriptCommand("checknpccell", "siii", checkNpcCell); addScriptCommand("setcells", "siiiiis", setCells); diff --git a/src/emap/script_buildins.c b/src/emap/script_buildins.c index ae705ce..0c125c2 100644 --- a/src/emap/script_buildins.c +++ b/src/emap/script_buildins.c @@ -1438,21 +1438,6 @@ BUILDIN(removeCardByIndex) return true; } -// return paramater type -// 0 - int -// 1 - string -// 2 - other -BUILDIN(isStr) -{ - if (script_isinttype(st, 2)) - script_pushint(st, 0); - else if (script_isstringtype(st, 2)) - script_pushint(st, 1); - else - script_pushint(st, 2); - return true; -} - BUILDIN(npcSit) { TBL_NPC *nd = NULL; diff --git a/src/emap/script_buildins.h b/src/emap/script_buildins.h index 374e1eb..aebdb49 100644 --- a/src/emap/script_buildins.h +++ b/src/emap/script_buildins.h @@ -54,7 +54,6 @@ BUILDIN(successRemoveCardsIndex); BUILDIN(failedRemoveCardsIndex); BUILDIN(getCardByIndex); BUILDIN(removeCardByIndex); -BUILDIN(isStr); BUILDIN(npcSit); BUILDIN(npcStand); BUILDIN(npcWalkTo); |