summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2014-11-26 12:25:46 +0300
committerAndrei Karas <akaras@inbox.ru>2014-11-26 12:25:46 +0300
commit9484af0df48cc4e8d986090a9591d01b4c6c4df6 (patch)
treed9c91251546e7d5ef186eeddb911f00355b5b766
parent839de7efcd83c8e042acb16de658afb078ac2ec7 (diff)
downloadevol-hercules-9484af0df48cc4e8d986090a9591d01b4c6c4df6.tar.gz
evol-hercules-9484af0df48cc4e8d986090a9591d01b4c6c4df6.tar.bz2
evol-hercules-9484af0df48cc4e8d986090a9591d01b4c6c4df6.tar.xz
evol-hercules-9484af0df48cc4e8d986090a9591d01b4c6c4df6.zip
Remove deprecated script functions.
-rw-r--r--src/map/init.c3
-rw-r--r--src/map/script.c21
-rw-r--r--src/map/script.h3
3 files changed, 0 insertions, 27 deletions
diff --git a/src/map/init.c b/src/map/init.c
index 241e1b2..910b5df 100644
--- a/src/map/init.c
+++ b/src/map/init.c
@@ -67,8 +67,6 @@ HPExport void plugin_init (void)
addScriptCommand("getitemlink", "s", getItemLink);
addScriptCommand("l", "s*", l);
addScriptCommand("lg", "s*", lg);
- addScriptCommandDeprecated("getlang", "", getLang);
- addScriptCommandDeprecated("setlang", "i", setLang);
addScriptCommand("requestlang", "v", requestLang);
addScriptCommand("getq", "i", getq);
addScriptCommand("setq", "ii", setq);
@@ -76,7 +74,6 @@ HPExport void plugin_init (void)
addScriptCommand("setnpcdir", "*", setNpcDir);
addScriptCommand("rif", "is*", rif);
addScriptCommand("countitemcolor", "v*", countItemColor);
- addScriptCommandDeprecated("getclientversion", "", getClientVersion);
// must be replaced to misceffect
addScriptCommand("misceffect2", "i*", dummy);
diff --git a/src/map/script.c b/src/map/script.c
index efb53a9..bdf8bb2 100644
--- a/src/map/script.c
+++ b/src/map/script.c
@@ -38,27 +38,6 @@ BUILDIN(lg)
return true;
}
-BUILDIN(getClientVersion)
-{
- getDataReturn(0);
- script_pushint(st, data->clientVersion);
- return true;
-}
-
-BUILDIN(getLang)
-{
- getDataReturn(0);
- script_pushint(st, data->language);
- return true;
-}
-
-BUILDIN(setLang)
-{
- getData();
- data->language = script_getnum(st, 2);
- return true;
-}
-
BUILDIN(setCamNpc)
{
getSD();
diff --git a/src/map/script.h b/src/map/script.h
index cc54dba..a58b071 100644
--- a/src/map/script.h
+++ b/src/map/script.h
@@ -6,9 +6,6 @@
BUILDIN(l);
BUILDIN(lg);
-BUILDIN(getClientVersion);
-BUILDIN(getLang);
-BUILDIN(setLang);
BUILDIN(setCamNpc);
BUILDIN(restoreCam);
BUILDIN(npcTalk3);