summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2019-04-13 20:13:47 +0300
committerAndrei Karas <akaras@inbox.ru>2019-05-05 22:22:04 +0300
commite68011e838a56888160861b539fb00d1e1529a2c (patch)
treede588c4baaa0d5c18287a10864197cbb6011c945
parent3852f2b2759f203622361f8e420d59a40ccdc5bf (diff)
downloadhercules-e68011e838a56888160861b539fb00d1e1529a2c.tar.gz
hercules-e68011e838a56888160861b539fb00d1e1529a2c.tar.bz2
hercules-e68011e838a56888160861b539fb00d1e1529a2c.tar.xz
hercules-e68011e838a56888160861b539fb00d1e1529a2c.zip
Send old name packet for players if fake name or disquise used
-rw-r--r--src/map/clif.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/map/clif.c b/src/map/clif.c
index 6869b541f..e060b8d11 100644
--- a/src/map/clif.c
+++ b/src/map/clif.c
@@ -9260,7 +9260,7 @@ static void clif_pcname_ack(int fd, struct block_list *bl)
const struct guild *g = NULL;
int ps = -1;
- if (ssd->fakename[0] != '\0' || ssd->status.guild_id > 0 || ssd->status.party_id > 0 || ssd->status.title_id > 0) {
+ if (ssd->fakename[0] != '\0' && ssd->disguise != -1) {
packet.packet_id = HEADER_ZC_ACK_REQNAMEALL;
len = sizeof(struct PACKET_ZC_ACK_REQNAMEALL);
} else {
@@ -9273,7 +9273,7 @@ static void clif_pcname_ack(int fd, struct block_list *bl)
packet.gid = -bl->id;
}
- if (ssd->fakename[0] != '\0') {
+ if (ssd->fakename[0] != '\0' && ssd->disguise != -1) {
memcpy(packet.name, ssd->fakename, NAME_LENGTH);
} else {
#if PACKETVER_MAIN_NUM >= 20150225 || PACKETVER_RE_NUM >= 20141126 || defined(PACKETVER_ZERO)