From 3dd482367675292233bf034bc8a38b2ab46b0aa3 Mon Sep 17 00:00:00 2001 From: Kenpachi Developer Date: Mon, 22 Jun 2020 03:06:00 +0200 Subject: Extend guild_notice_changemap battle flag with option for login --- src/map/battle.c | 2 +- src/map/clif.c | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) (limited to 'src/map') diff --git a/src/map/battle.c b/src/map/battle.c index dc2535052..ed5aa4cb9 100644 --- a/src/map/battle.c +++ b/src/map/battle.c @@ -7383,7 +7383,7 @@ static const struct battle_data { { "packet_obfuscation", &battle_config.packet_obfuscation, 1, 0, 3, }, { "client_accept_chatdori", &battle_config.client_accept_chatdori, 0, 0, INT_MAX, }, { "snovice_call_type", &battle_config.snovice_call_type, 0, 0, 1, }, - { "guild_notice_changemap", &battle_config.guild_notice_changemap, 2, 0, 2, }, + { "guild_notice_changemap", &battle_config.guild_notice_changemap, 7, 0, 7, }, { "features/banking", &battle_config.feature_banking, 1, 0, 1, }, { "features/auction", &battle_config.feature_auction, 0, 0, 2, }, { "idletime_criteria", &battle_config.idletime_criteria, 0x25, 1, INT_MAX, }, diff --git a/src/map/clif.c b/src/map/clif.c index a580d6464..9eba9f4b4 100644 --- a/src/map/clif.c +++ b/src/map/clif.c @@ -11030,9 +11030,9 @@ static void clif_parse_LoadEndAck(int fd, struct map_session_data *sd) if (sd->guild != NULL) { // Show guild notice. - if ((battle_config.guild_notice_changemap == 1 && change_map) - || battle_config.guild_notice_changemap == 2 - || first_time) { + if (((battle_config.guild_notice_changemap & 0x1) != 0 && first_time) + || ((battle_config.guild_notice_changemap & 0x2) != 0 && !first_time && change_map) + || (battle_config.guild_notice_changemap & 0x4) != 0) { clif->guild_notice(sd, sd->guild); } -- cgit v1.2.3-70-g09d2