summaryrefslogtreecommitdiff
path: root/src/map
diff options
context:
space:
mode:
authorAsheraf <acheraf1998@gmail.com>2018-03-29 13:48:56 +0100
committerAsheraf <acheraf1998@gmail.com>2018-03-29 19:35:18 +0100
commit4021436d86068b7d50ffead89aa15880ce05abf2 (patch)
treeeaf61b7b057513bd9a7ba983f7068d691029019a /src/map
parent112c34e0e1b92397f0df7eea459fcbac946d340b (diff)
downloadhercules-4021436d86068b7d50ffead89aa15880ce05abf2.tar.gz
hercules-4021436d86068b7d50ffead89aa15880ce05abf2.tar.bz2
hercules-4021436d86068b7d50ffead89aa15880ce05abf2.tar.xz
hercules-4021436d86068b7d50ffead89aa15880ce05abf2.zip
add missing homunculus autofeed update on change map
Diffstat (limited to 'src/map')
-rw-r--r--src/map/clif.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/map/clif.c b/src/map/clif.c
index f5adde873..d93c8b869 100644
--- a/src/map/clif.c
+++ b/src/map/clif.c
@@ -9756,6 +9756,13 @@ void clif_parse_LoadEndAck(int fd, struct map_session_data *sd) {
clif->partyinvitationstate(sd);
clif->equpcheckbox(sd);
#endif
+
+#if PACKETVER_MAIN_NUM >= 20171025 || PACKETVER_RE_NUM >= 20170920
+ if (sd->hd != NULL)
+ clif->zc_config(sd, CZ_CONFIG_HOMUNCULUS_AUTOFEEDING, sd->hd->homunculus.autofeed);
+ else
+ clif->zc_config(sd, CZ_CONFIG_HOMUNCULUS_AUTOFEEDING, false);
+#endif
if( (battle_config.bg_flee_penalty != 100 || battle_config.gvg_flee_penalty != 100)
&& (map_flag_gvg2(sd->state.pmap) || map_flag_gvg2(sd->bl.m)
|| map->list[sd->state.pmap].flag.battleground || map->list[sd->bl.m].flag.battleground) )