Browse Source

Added clan name display

Clients that do not support this ignore this anyway.
Party name is not displayed when you are in a clan unlike with a guild.
You can use display_party_name if you want to show it.
Lemongrass3110 7 years ago
parent
commit
9a7e27b690
1 changed files with 4 additions and 1 deletions
  1. 4 1
      src/map/clif.cpp

+ 4 - 1
src/map/clif.cpp

@@ -9509,7 +9509,10 @@ void clif_name( struct block_list* src, struct block_list *bl, send_target targe
 
 				safestrncpy(WBUFCP(buf,54), sd->guild->name,NAME_LENGTH);
 				safestrncpy(WBUFCP(buf,78), sd->guild->position[position].name, NAME_LENGTH);
-			}else{ //Assume no guild.
+			}else if( sd->clan ){
+				WBUFB(buf,54) = 0;
+				safestrncpy(WBUFCP(buf,78), sd->clan->name,NAME_LENGTH);
+			}else{ //Assume no guild and no clan
 				WBUFB(buf,54) = 0;
 				WBUFB(buf,78) = 0;
 			}