summaryrefslogtreecommitdiff
path: root/src/map/send.c
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2015-03-05 22:23:12 +0300
committerAndrei Karas <akaras@inbox.ru>2015-03-05 22:26:06 +0300
commit6b230a4de27de394dd4e28662cd27070ab91c1f1 (patch)
tree58dba9c128bb7eb480472dd42d5e6b44401b74e3 /src/map/send.c
parentdb82d35cb549aa305df53c4f0cbe5149062161e3 (diff)
downloadevol-hercules-6b230a4de27de394dd4e28662cd27070ab91c1f1.tar.gz
evol-hercules-6b230a4de27de394dd4e28662cd27070ab91c1f1.tar.bz2
evol-hercules-6b230a4de27de394dd4e28662cd27070ab91c1f1.tar.xz
evol-hercules-6b230a4de27de394dd4e28662cd27070ab91c1f1.zip
Replace struct map_session_data to TBL_PC.
Diffstat (limited to 'src/map/send.c')
-rw-r--r--src/map/send.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/map/send.c b/src/map/send.c
index 0ba1089..b2bafa0 100644
--- a/src/map/send.c
+++ b/src/map/send.c
@@ -22,7 +22,7 @@
#include "map/data/session.h"
#include "map/struct/sessionext.h"
-void send_npccommand (struct map_session_data *sd, int npcId, int cmd)
+void send_npccommand (TBL_PC *sd, int npcId, int cmd)
{
if (!sd)
return;
@@ -39,7 +39,7 @@ void send_npccommand (struct map_session_data *sd, int npcId, int cmd)
}
// 0 - get client lang
-void send_npccommand2 (struct map_session_data *sd, int npcId, int cmd, int id, int x, int y)
+void send_npccommand2 (TBL_PC *sd, int npcId, int cmd, int id, int x, int y)
{
if (!sd)
return;
@@ -134,12 +134,12 @@ void send_pc_info(struct block_list* bl1,
return;
char buf[12];
- struct map_session_data *sd = (struct map_session_data *)bl1;
+ TBL_PC *sd = (TBL_PC *)bl1;
struct SessionExt *data = session_get_bysd(sd);
if (!data)
return;
- struct map_session_data *tsd = (struct map_session_data *)bl2;
+ TBL_PC *tsd = (TBL_PC *)bl2;
if (tsd)
{
struct SessionExt *tdata = session_get_bysd(tsd);
@@ -165,7 +165,7 @@ void send_npc_info(struct block_list* bl1,
if (!bl1 || bl1->type != BL_NPC)
return;
- struct map_session_data *tsd = (struct map_session_data *)bl2;
+ TBL_PC *tsd = (TBL_PC *)bl2;
if (tsd)
{
struct SessionExt *tdata = session_get_bysd(tsd);
@@ -232,7 +232,7 @@ void send_changemusic_brodcast(const int map, const char *music)
aFree(buf);
}
-void send_changenpc_title (struct map_session_data *sd, const int npcId, const char *name)
+void send_changenpc_title (TBL_PC *sd, const int npcId, const char *name)
{
if (!sd || !name)
return;
@@ -261,7 +261,7 @@ void send_join_ack(int fd, const char *const name, int flag)
WFIFOSET (fd, 27);
}
-void send_slave_say(struct map_session_data *sd,
+void send_slave_say(TBL_PC *sd,
struct block_list *bl,
const char *const name,
const char *const message)