summaryrefslogtreecommitdiff
path: root/src/char/mapif.c
diff options
context:
space:
mode:
authorHaru <haru@dotalux.com>2016-02-22 00:52:53 +0100
committerHaru <haru@dotalux.com>2016-02-24 19:40:31 +0100
commitd736b2ef87d2b331f2e8fca9c42784d481778a94 (patch)
treee48c39d618a923483418595cf2bd77df660da749 /src/char/mapif.c
parenta9326b175d42b9f6448d97b52108be907194854c (diff)
downloadhercules-d736b2ef87d2b331f2e8fca9c42784d481778a94.tar.gz
hercules-d736b2ef87d2b331f2e8fca9c42784d481778a94.tar.bz2
hercules-d736b2ef87d2b331f2e8fca9c42784d481778a94.tar.xz
hercules-d736b2ef87d2b331f2e8fca9c42784d481778a94.zip
Split mapif->elemental_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 5ba687a77..4edcb6027 100644
--- a/src/char/mapif.c
+++ b/src/char/mapif.c
@@ -57,7 +57,8 @@ void mapif_auction_close(int fd, int char_id, unsigned char result);
void mapif_parse_auction_close(int fd);
void mapif_auction_bid(int fd, int char_id, int bid, unsigned char result);
void mapif_parse_auction_bid(int fd);
-bool mapif_elemental_save(struct s_elemental* ele);
+bool mapif_elemental_create(struct s_elemental *ele);
+bool mapif_elemental_save(const struct s_elemental *ele);
bool mapif_elemental_load(int ele_id, int char_id, struct s_elemental *ele);
bool mapif_elemental_delete(int ele_id);
void mapif_elemental_send(int fd, struct s_elemental *ele, unsigned char flag);
@@ -232,6 +233,7 @@ void mapif_defaults(void) {
mapif->parse_auction_close = mapif_parse_auction_close;
mapif->auction_bid = mapif_auction_bid;
mapif->parse_auction_bid = mapif_parse_auction_bid;
+ mapif->elemental_create = mapif_elemental_create;
mapif->elemental_save = mapif_elemental_save;
mapif->elemental_load = mapif_elemental_load;
mapif->elemental_delete = mapif_elemental_delete;