diff options
author | Haru <haru@dotalux.com> | 2019-11-17 16:25:25 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-11-17 16:25:25 +0100 |
commit | 76c5cbecee3441a8dbd1f729e09db78af94be056 (patch) | |
tree | 17a31362aed4d91cccfab1057b1d71cd49c8d562 /src | |
parent | d891c3864533c22a4e7255518484792650846d39 (diff) | |
parent | b4e6f31a35bf513b8280ebc1d7a82cc3f9b19fbf (diff) | |
download | hercules-76c5cbecee3441a8dbd1f729e09db78af94be056.tar.gz hercules-76c5cbecee3441a8dbd1f729e09db78af94be056.tar.bz2 hercules-76c5cbecee3441a8dbd1f729e09db78af94be056.tar.xz hercules-76c5cbecee3441a8dbd1f729e09db78af94be056.zip |
Merge pull request #2548 from bWolfie/fix_fakename
Fix issues with @fakename.
Diffstat (limited to 'src')
-rw-r--r-- | src/map/clif.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/map/clif.c b/src/map/clif.c index 5c86edcaa..baa6d7462 100644 --- a/src/map/clif.c +++ b/src/map/clif.c @@ -9354,7 +9354,7 @@ static void clif_pcname_ack(int fd, struct block_list *bl) const struct map_session_data *ssd = BL_UCCAST(BL_PC, bl); - if (ssd->fakename[0] != '\0' && ssd->disguise != -1) { + if (ssd->fakename[0] != '\0') { packet.packet_id = reqName; len = sizeof(struct packet_reqname_ack); } else { @@ -9367,7 +9367,7 @@ static void clif_pcname_ack(int fd, struct block_list *bl) packet.gid = -bl->id; } - if (ssd->fakename[0] != '\0' && ssd->disguise != -1) { + if (ssd->fakename[0] != '\0') { memcpy(packet.name, ssd->fakename, NAME_LENGTH); } else { #if PACKETVER_MAIN_NUM >= 20150225 || PACKETVER_RE_NUM >= 20141126 || defined(PACKETVER_ZERO) |