diff options
author | Jared Adams <jaxad0127@gmail.com> | 2008-10-15 16:48:49 +0000 |
---|---|---|
committer | Jared Adams <jaxad0127@gmail.com> | 2008-10-15 16:48:49 +0000 |
commit | 682749567e93d1e2282e5de150f3900a0ac5b4f8 (patch) | |
tree | 1b21bf0ce8ad87111ac65264a37c62b9d6eb8c7c /src | |
parent | 8392585798dc7fb37a5ddd38ecde399ebf25b236 (diff) | |
download | tmwa-682749567e93d1e2282e5de150f3900a0ac5b4f8.tar.gz tmwa-682749567e93d1e2282e5de150f3900a0ac5b4f8.tar.bz2 tmwa-682749567e93d1e2282e5de150f3900a0ac5b4f8.tar.xz tmwa-682749567e93d1e2282e5de150f3900a0ac5b4f8.zip |
Make it easier to use NPCs without names
Diffstat (limited to 'src')
-rw-r--r-- | src/map/clif.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/map/clif.c b/src/map/clif.c index 98dd0fc..ad750d4 100644 --- a/src/map/clif.c +++ b/src/map/clif.c @@ -7407,6 +7407,12 @@ void clif_parse_GetCharNameRequest(int fd, struct map_session_data *sd) { break; case BL_NPC: memcpy(WFIFOP(fd,6), ((struct npc_data*)bl)->name, 24); + { + char *end = strchr(WFIFOP(fd, 6), '#'); // elim hashed out/invisible names for the client + if (end) + while (*end) + *end++ = 0; + } WFIFOSET(fd,packet_len_table[0x95]); break; case BL_MOB: |