summaryrefslogtreecommitdiff
path: root/src/map
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2016-09-11 17:31:03 +0300
committerAndrei Karas <akaras@inbox.ru>2016-09-12 01:03:21 +0300
commitedd59a66d8bfc83e601343c6d841cfaf9e135319 (patch)
tree8b5f1b8c4b2ac743a2fd56c407051585a257900e /src/map
parentcc21e11ed548e79a0f26516abe2cfb19045fc323 (diff)
downloadhercules-edd59a66d8bfc83e601343c6d841cfaf9e135319.tar.gz
hercules-edd59a66d8bfc83e601343c6d841cfaf9e135319.tar.bz2
hercules-edd59a66d8bfc83e601343c6d841cfaf9e135319.tar.xz
hercules-edd59a66d8bfc83e601343c6d841cfaf9e135319.zip
Send correct homunculus rename flag to client. (Fixes #1424)
Diffstat (limited to 'src/map')
-rw-r--r--src/map/clif.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/map/clif.c b/src/map/clif.c
index 183229f95..86a63f524 100644
--- a/src/map/clif.c
+++ b/src/map/clif.c
@@ -1515,7 +1515,7 @@ void clif_hominfo(struct map_session_data *sd, struct homun_data *hd, int flag)
WBUFW(buf, 0) = cmd;
memcpy(WBUFP(buf, 2), hd->homunculus.name, NAME_LENGTH);
// Bit field, bit 0 : rename_flag (1 = already renamed), bit 1 : homunc vaporized (1 = true), bit 2 : homunc dead (1 = true)
- WBUFB(buf, 26) = (battle_config.hom_rename && hd->homunculus.rename_flag ? 0x1 : 0x0) | (hd->homunculus.vaporize == HOM_ST_REST ? 0x2 : 0) | (hd->homunculus.hp > 0 ? 0x4 : 0);
+ WBUFB(buf, 26) = (!battle_config.hom_rename && hd->homunculus.rename_flag ? 0x1 : 0x0) | (hd->homunculus.vaporize == HOM_ST_REST ? 0x2 : 0) | (hd->homunculus.hp > 0 ? 0x4 : 0);
WBUFW(buf, 27) = hd->homunculus.level;
WBUFW(buf, 29) = hd->homunculus.hunger;
WBUFW(buf, 31) = (unsigned short) (hd->homunculus.intimacy / 100) ;