diff options
author | Kisuka <Kisuka@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2011-03-08 12:44:53 +0000 |
---|---|---|
committer | Kisuka <Kisuka@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2011-03-08 12:44:53 +0000 |
commit | 29c67b8f54918d4cadc174805be14bcbd273051e (patch) | |
tree | 00c294204bca8a3aec76317100fe19aaf08a2daa /src/map/clif.c | |
parent | 50c8504c1d282905a2a0991d3a9a420295d09e31 (diff) | |
download | hercules-29c67b8f54918d4cadc174805be14bcbd273051e.tar.gz hercules-29c67b8f54918d4cadc174805be14bcbd273051e.tar.bz2 hercules-29c67b8f54918d4cadc174805be14bcbd273051e.tar.xz hercules-29c67b8f54918d4cadc174805be14bcbd273051e.zip |
- Added official behavior of displaying party names.
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@14737 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/clif.c')
-rw-r--r-- | src/map/clif.c | 18 |
1 files changed, 14 insertions, 4 deletions
diff --git a/src/map/clif.c b/src/map/clif.c index 1a12ca8aa..960a63c0e 100644 --- a/src/map/clif.c +++ b/src/map/clif.c @@ -7653,8 +7653,13 @@ int clif_charnameack (int fd, struct block_list *bl) } memcpy(WBUFP(buf,6), ssd->status.name, NAME_LENGTH); - if (ssd->status.party_id > 0) - p = party_search(ssd->status.party_id); + if (!battle_config.display_party_name) { + if (ssd->status.party_id > 0 && ssd->status.guild_id > 0 && (g = guild_search(ssd->status.guild_id)) != NULL) + p = party_search(ssd->status.party_id); + }else{ + if (ssd->status.party_id > 0) + p = party_search(ssd->status.party_id); + } if( ssd->status.guild_id > 0 && (g = guild_search(ssd->status.guild_id)) != NULL ) { @@ -7769,8 +7774,13 @@ int clif_charnameupdate (struct map_session_data *ssd) memcpy(WBUFP(buf,6), ssd->status.name, NAME_LENGTH); - if( ssd->status.party_id > 0 ) - p = party_search(ssd->status.party_id); + if (!battle_config.display_party_name) { + if (ssd->status.party_id > 0 && ssd->status.guild_id > 0 && (g = guild_search(ssd->status.guild_id)) != NULL) + p = party_search(ssd->status.party_id); + }else{ + if (ssd->status.party_id > 0) + p = party_search(ssd->status.party_id); + } if( ssd->status.guild_id > 0 && (g = guild_search(ssd->status.guild_id)) != NULL ) { |