summaryrefslogtreecommitdiff
path: root/src/char/mapif.c
diff options
context:
space:
mode:
authorHaru <haru@dotalux.com>2016-02-22 01:09:54 +0100
committerHaru <haru@dotalux.com>2016-02-24 19:40:31 +0100
commit1a0ad427708a010992321efbcdca90150b9e3f8b (patch)
treec10b29e4ee666bc391949f081add7ad659560b1b /src/char/mapif.c
parent95e6e3e2437dafcaa270a3891821d13a54107c94 (diff)
downloadhercules-1a0ad427708a010992321efbcdca90150b9e3f8b.tar.gz
hercules-1a0ad427708a010992321efbcdca90150b9e3f8b.tar.bz2
hercules-1a0ad427708a010992321efbcdca90150b9e3f8b.tar.xz
hercules-1a0ad427708a010992321efbcdca90150b9e3f8b.zip
Split mapif->mercenary_save() into two functions (save and create)
Signed-off-by: Haru <haru@dotalux.com>
Diffstat (limited to 'src/char/mapif.c')
-rw-r--r--src/char/mapif.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/char/mapif.c b/src/char/mapif.c
index dc8e34e36..f25df2369 100644
--- a/src/char/mapif.c
+++ b/src/char/mapif.c
@@ -131,7 +131,8 @@ void mapif_mail_return(int fd, int char_id, int mail_id, int new_mail);
void mapif_parse_mail_return(int fd);
void mapif_mail_send(int fd, struct mail_message* msg);
void mapif_parse_mail_send(int fd);
-bool mapif_mercenary_save(struct s_mercenary* merc);
+bool mapif_mercenary_create(struct s_mercenary *merc);
+bool mapif_mercenary_save(const struct s_mercenary *merc);
bool mapif_mercenary_load(int merc_id, int char_id, struct s_mercenary *merc);
bool mapif_mercenary_delete(int merc_id);
void mapif_mercenary_send(int fd, struct s_mercenary *merc, unsigned char flag);
@@ -308,6 +309,7 @@ void mapif_defaults(void) {
mapif->parse_mail_return = mapif_parse_mail_return;
mapif->mail_send = mapif_mail_send;
mapif->parse_mail_send = mapif_parse_mail_send;
+ mapif->mercenary_create = mapif_mercenary_create;
mapif->mercenary_save = mapif_mercenary_save;
mapif->mercenary_load = mapif_mercenary_load;
mapif->mercenary_delete = mapif_mercenary_delete;