diff options
author | Kenpachi Developer <Kenpachi.Developer@gmx.de> | 2020-02-21 03:36:52 +0100 |
---|---|---|
committer | Kenpachi Developer <Kenpachi.Developer@gmx.de> | 2020-02-21 03:36:52 +0100 |
commit | 1d6dc898128912105b40766e446a0408f32e2e6e (patch) | |
tree | 9251eb6fcbb3cd52c804a15e6a8f57001ea6edc9 /src/map/clif.c | |
parent | 9106bbab19b4feaa4623a3b8e5d59e08ef73b640 (diff) | |
download | hercules-1d6dc898128912105b40766e446a0408f32e2e6e.tar.gz hercules-1d6dc898128912105b40766e446a0408f32e2e6e.tar.bz2 hercules-1d6dc898128912105b40766e446a0408f32e2e6e.tar.xz hercules-1d6dc898128912105b40766e446a0408f32e2e6e.zip |
Adjust clif_pcname_ack() function to always use PACKET_ZC_ACK_REQNAMEALL
This fixes the issue, where not even the fake name shows up, when using @fakename in RE clients.
Diffstat (limited to 'src/map/clif.c')
-rw-r--r-- | src/map/clif.c | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/src/map/clif.c b/src/map/clif.c index 660c516d7..fd5bdc699 100644 --- a/src/map/clif.c +++ b/src/map/clif.c @@ -9391,17 +9391,10 @@ static void clif_pcname_ack(int fd, struct block_list *bl) struct PACKET_ZC_ACK_REQNAMEALL packet = { 0 }; int len = sizeof(struct PACKET_ZC_ACK_REQNAMEALL); packet.gid = bl->id; + packet.packet_id = HEADER_ZC_ACK_REQNAMEALL; const struct map_session_data *ssd = BL_UCCAST(BL_PC, bl); - if (ssd->fakename[0] != '\0') { - packet.packet_id = reqName; - len = sizeof(struct packet_reqname_ack); - } else { - packet.packet_id = HEADER_ZC_ACK_REQNAMEALL; - len = sizeof(struct PACKET_ZC_ACK_REQNAMEALL); - } - //Requesting your own "shadow" name. [Skotlex] if (ssd->fd == fd && ssd->disguise != -1) { packet.gid = -bl->id; |