ソースを参照

Fixed guild name on alt+a (#8574)

Fixes #8522

Co-authored-by: Lemongrass3110 <lemongrass@kstp.at>
AoShinHo 8 ヶ月 前
コミット
dc6aab3d92
1 ファイル変更8 行追加0 行削除
  1. 8 0
      src/map/guild.cpp

+ 8 - 0
src/map/guild.cpp

@@ -893,6 +893,10 @@ int guild_recv_info(const struct mmo_guild &sg) {
 			clif_guild_skillinfo( *sd ); // Submit information skills
 
 		if (guild_new) { // Send information and affiliation if unsent
+#if PACKETVER >= 20200902
+			// Clients after this version need this packet to show the guild name on alt+a
+			clif_guild_basicinfo( *sd );
+#endif
 			clif_guild_belonginfo( *sd );
 			clif_guild_notice( *sd );
 			sd->guild_emblem_id = g->guild.emblem_id;
@@ -1376,6 +1380,10 @@ int guild_send_memberinfoshort(map_session_data *sd,int online) { // cleaned up
 	}
 
 	if(sd->state.connect_new) {	//Note that this works because it is invoked in parse_LoadEndAck before connect_new is cleared.
+#if PACKETVER >= 20200902
+		// Clients after this version need this packet to show the guild name on alt+a
+		clif_guild_basicinfo( *sd );
+#endif
 		clif_guild_belonginfo( *sd );
 		sd->guild_emblem_id = g->guild.emblem_id;
 	}