diff options
author | Haru <haru@dotalux.com> | 2016-02-22 00:52:53 +0100 |
---|---|---|
committer | Haru <haru@dotalux.com> | 2016-02-24 19:40:31 +0100 |
commit | d736b2ef87d2b331f2e8fca9c42784d481778a94 (patch) | |
tree | e48c39d618a923483418595cf2bd77df660da749 /src/char/mapif.c | |
parent | a9326b175d42b9f6448d97b52108be907194854c (diff) | |
download | hercules-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.c | 4 |
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; |