summaryrefslogtreecommitdiff
path: root/src/char/mapif.c
diff options
context:
space:
mode:
authorHaru <haru@dotalux.com>2016-02-22 01:03:59 +0100
committerHaru <haru@dotalux.com>2016-02-24 19:40:31 +0100
commit95e6e3e2437dafcaa270a3891821d13a54107c94 (patch)
treed4a098feab7e3e1d495b124b88cc7a9c30b4a49d /src/char/mapif.c
parentd736b2ef87d2b331f2e8fca9c42784d481778a94 (diff)
downloadhercules-95e6e3e2437dafcaa270a3891821d13a54107c94.tar.gz
hercules-95e6e3e2437dafcaa270a3891821d13a54107c94.tar.bz2
hercules-95e6e3e2437dafcaa270a3891821d13a54107c94.tar.xz
hercules-95e6e3e2437dafcaa270a3891821d13a54107c94.zip
Split mapif->homunculus_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 4edcb6027..dc8e34e36 100644
--- a/src/char/mapif.c
+++ b/src/char/mapif.c
@@ -108,7 +108,8 @@ void mapif_homunculus_deleted(int fd, int flag);
void mapif_homunculus_loaded(int fd, int account_id, struct s_homunculus *hd);
void mapif_homunculus_saved(int fd, int account_id, bool flag);
void mapif_homunculus_renamed(int fd, int account_id, int char_id, unsigned char flag, char* name);
-bool mapif_homunculus_save(struct s_homunculus* hd);
+bool mapif_homunculus_create(struct s_homunculus *hd);
+bool mapif_homunculus_save(const struct s_homunculus *hd);
bool mapif_homunculus_load(int homun_id, struct s_homunculus* hd);
bool mapif_homunculus_delete(int homun_id);
bool mapif_homunculus_rename(char *name);
@@ -284,6 +285,7 @@ void mapif_defaults(void) {
mapif->homunculus_loaded = mapif_homunculus_loaded;
mapif->homunculus_saved = mapif_homunculus_saved;
mapif->homunculus_renamed = mapif_homunculus_renamed;
+ mapif->homunculus_create = mapif_homunculus_create;
mapif->homunculus_save = mapif_homunculus_save;
mapif->homunculus_load = mapif_homunculus_load;
mapif->homunculus_delete = mapif_homunculus_delete;