summaryrefslogtreecommitdiff
path: root/src/emap/init.c
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2016-09-01 22:02:39 +0300
committerAndrei Karas <akaras@inbox.ru>2016-09-01 22:02:39 +0300
commit211787e349e0249fc032b3b51f8649af613f5ecf (patch)
tree71e67c6b58ecf836f47f836c9625e2bcae2a7db9 /src/emap/init.c
parent4f35fa5d10ba0a30157205227f25aed6da67f4e1 (diff)
downloadevol-hercules-211787e349e0249fc032b3b51f8649af613f5ecf.tar.gz
evol-hercules-211787e349e0249fc032b3b51f8649af613f5ecf.tar.bz2
evol-hercules-211787e349e0249fc032b3b51f8649af613f5ecf.tar.xz
evol-hercules-211787e349e0249fc032b3b51f8649af613f5ecf.zip
Add hack for avoid npc_str buffer size limitation.
Now for npc_str used global variable. And it cant be used in any functions except input related buildins.
Diffstat (limited to 'src/emap/init.c')
-rw-r--r--src/emap/init.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/emap/init.c b/src/emap/init.c
index fb95d32..23a2a88 100644
--- a/src/emap/init.c
+++ b/src/emap/init.c
@@ -77,6 +77,7 @@
extern int langScriptId;
extern int mountScriptId;
bool isInit;
+char global_npc_str[1001];
HPExport struct hplugin_info pinfo =
{
@@ -89,6 +90,7 @@ HPExport struct hplugin_info pinfo =
HPExport void plugin_init (void)
{
isInit = false;
+ *global_npc_str = 0;
htreg_init();
skilld_init();
@@ -327,6 +329,7 @@ HPExport void plugin_init (void)
skill->validate_additional_fields = eskill_validate_additional_fields;
clif->useskill = eclif_useskill;
clif->pWalkToXY = eclif_parse_WalkToXY;
+ clif->pNpcStringInput = eclif_parse_NpcStringInput;
pc->jobchange = epc_jobchange;
langScriptId = script->add_str("Lang");