From 9484af0df48cc4e8d986090a9591d01b4c6c4df6 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Wed, 26 Nov 2014 12:25:46 +0300 Subject: Remove deprecated script functions. --- src/map/init.c | 3 --- src/map/script.c | 21 --------------------- src/map/script.h | 3 --- 3 files changed, 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); -- cgit v1.2.3-60-g2f50