summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2016-01-06 23:47:16 +0300
committerAndrei Karas <akaras@inbox.ru>2016-01-06 23:47:16 +0300
commitf1b746d7701b0480ad177be34e28b452c4f5e7f8 (patch)
tree97a099b4b9039e6791feab897baffe0b30d4a254 /src
parent30df3dc33ff6b36309efca4c23af82a68ee35ca6 (diff)
downloadevol-hercules-f1b746d7701b0480ad177be34e28b452c4f5e7f8.tar.gz
evol-hercules-f1b746d7701b0480ad177be34e28b452c4f5e7f8.tar.bz2
evol-hercules-f1b746d7701b0480ad177be34e28b452c4f5e7f8.tar.xz
evol-hercules-f1b746d7701b0480ad177be34e28b452c4f5e7f8.zip
Replace some map->id2bl to map->id2nd.
Diffstat (limited to 'src')
-rw-r--r--src/emap/script.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/emap/script.c b/src/emap/script.c
index 0cadc03..b953912 100644
--- a/src/emap/script.c
+++ b/src/emap/script.c
@@ -389,7 +389,7 @@ BUILDIN(setCamNpc)
return false;
}
- nd = (TBL_NPC *) map->id2bl (st->oid);
+ nd = map->id2nd(st->oid);
}
if (!nd)
{
@@ -453,7 +453,7 @@ BUILDIN(npcTalk3)
}
else
{
- nd = (TBL_NPC *) map->id2bl (st->oid);
+ nd = map->id2nd(st->oid);
str = script_getstr(st, 2);
}
@@ -943,7 +943,7 @@ BUILDIN(setNpcDir)
return false;
}
- nd = (TBL_NPC *) map->id2bl (st->oid);
+ nd = map->id2nd(st->oid);
newdir = script_getnum(st, 2);
}
if (!nd)
@@ -1603,7 +1603,7 @@ BUILDIN(npcSit)
return false;
}
- nd = (TBL_NPC *) map->id2bl (st->oid);
+ nd = map->id2nd(st->oid);
}
if (!nd)
{
@@ -1633,7 +1633,7 @@ BUILDIN(npcStand)
return false;
}
- nd = (TBL_NPC *) map->id2bl (st->oid);
+ nd = map->id2nd(st->oid);
}
if (!nd)
{
@@ -1648,7 +1648,7 @@ BUILDIN(npcStand)
BUILDIN(npcWalkTo)
{
- struct npc_data *nd = (struct npc_data *)map->id2bl(st->oid);
+ struct npc_data *nd = map->id2nd(st->oid);
int x = 0, y = 0;
x = script_getnum(st, 2);