Fixed guild name on alt+a (#8574)

Fixes #8522

Co-authored-by: Lemongrass3110 <lemongrass@kstp.at>
This commit is contained in:
AoShinHo 2024-08-27 08:05:03 -03:00 committed by GitHub
parent d5267c63a9
commit dc6aab3d92
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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;
}