From 12560ec2f654339cfd6f219b2c0403ff683be19d Mon Sep 17 00:00:00 2001 From: Fate Date: Sun, 17 May 2009 18:24:17 +0000 Subject: Transform underscores that preceed NPC names into blanks before sending to clients --- src/map/clif.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'src/map') diff --git a/src/map/clif.c b/src/map/clif.c index ba9f6a5..ed973fd 100644 --- a/src/map/clif.c +++ b/src/map/clif.c @@ -6428,10 +6428,15 @@ void clif_parse_GetCharNameRequest(int fd, struct map_session_data *sd) { 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 + char *start = WFIFOP(fd, 6); + char *end = strchr(start, '#'); // [fate] elim hashed out/invisible names for the client if (end) while (*end) *end++ = 0; + + // [fate] Elim preceding underscores for (hackish) name position fine-tuning + while (*start == '_') + *start++ = ' '; } WFIFOSET(fd,packet_len_table[0x95]); break; -- cgit v1.2.3-70-g09d2