summaryrefslogtreecommitdiff
path: root/src/map/script.c
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2015-03-05 22:26:23 +0300
committerAndrei Karas <akaras@inbox.ru>2015-03-05 22:26:23 +0300
commit924d3b6f300839800b5c5c514f918edd432fc8bb (patch)
tree64edc13ea53b897664c7593bf7567f3698ddefb0 /src/map/script.c
parent6b230a4de27de394dd4e28662cd27070ab91c1f1 (diff)
downloadplugin-924d3b6f300839800b5c5c514f918edd432fc8bb.tar.gz
plugin-924d3b6f300839800b5c5c514f918edd432fc8bb.tar.bz2
plugin-924d3b6f300839800b5c5c514f918edd432fc8bb.tar.xz
plugin-924d3b6f300839800b5c5c514f918edd432fc8bb.zip
Replace struct npc_data to TBL_NPC.
Diffstat (limited to 'src/map/script.c')
-rw-r--r--src/map/script.c18
1 files changed, 9 insertions, 9 deletions
diff --git a/src/map/script.c b/src/map/script.c
index 3f445f3..b711688 100644
--- a/src/map/script.c
+++ b/src/map/script.c
@@ -46,7 +46,7 @@ BUILDIN(lg)
BUILDIN(setCamNpc)
{
getSD();
- struct npc_data *nd = NULL;
+ TBL_NPC *nd = NULL;
int x = 0;
int y = 0;
@@ -64,7 +64,7 @@ BUILDIN(setCamNpc)
return false;
}
- nd = (struct npc_data *) map->id2bl (st->oid);
+ nd = (TBL_NPC *) map->id2bl (st->oid);
}
if (!nd)
{
@@ -117,7 +117,7 @@ BUILDIN(npcTalk3)
{
const char *str;
char *msg;
- struct npc_data *nd = NULL;
+ TBL_NPC *nd = NULL;
getSD();
@@ -128,7 +128,7 @@ BUILDIN(npcTalk3)
}
else
{
- nd = (struct npc_data *) map->id2bl (st->oid);
+ nd = (TBL_NPC *) map->id2bl (st->oid);
str = script_getstr(st, 2);
}
@@ -189,7 +189,7 @@ BUILDIN(closeDialog)
BUILDIN(shop)
{
getSD();
- struct npc_data *nd = npc->name2id (script_getstr(st, 2));
+ TBL_NPC *nd = npc->name2id (script_getstr(st, 2));
if (!nd)
{
ShowWarning("shop npc not found\n");
@@ -474,7 +474,7 @@ BUILDIN(getq)
BUILDIN(setNpcDir)
{
int newdir;
- struct npc_data *nd = 0;
+ TBL_NPC *nd = 0;
if (script_hasdata(st, 3))
{
@@ -490,7 +490,7 @@ BUILDIN(setNpcDir)
return false;
}
- nd = (struct npc_data *) map->id2bl (st->oid);
+ nd = (TBL_NPC *) map->id2bl (st->oid);
newdir = script_getnum(st, 2);
}
if (!nd)
@@ -716,7 +716,7 @@ BUILDIN(removeMapMask)
BUILDIN(setNpcSex)
{
- struct npc_data *nd = NULL;
+ TBL_NPC *nd = NULL;
int sex = 0;
if (script_hasdata(st, 3))
{
@@ -742,7 +742,7 @@ BUILDIN(setNpcSex)
}
if (!nd)
- nd = (struct npc_data *) map->id2bl(st->oid);
+ nd = (TBL_NPC *) map->id2bl(st->oid);
if (!nd || !nd->vd)
{