diff options
author | Kenpachi Developer <Kenpachi.Developer@gmx.de> | 2020-06-25 08:20:50 +0200 |
---|---|---|
committer | Kenpachi Developer <Kenpachi.Developer@gmx.de> | 2020-06-25 08:20:50 +0200 |
commit | 1ee5255bc81b5057dae57f4f1d91b7c70efeb143 (patch) | |
tree | b50ce313490ffdf805f0b332fdb87a6d0ea9bbe9 /src/map/clif.c | |
parent | 87994df22212939fb9151160015953daccc289b6 (diff) | |
download | hercules-1ee5255bc81b5057dae57f4f1d91b7c70efeb143.tar.gz hercules-1ee5255bc81b5057dae57f4f1d91b7c70efeb143.tar.bz2 hercules-1ee5255bc81b5057dae57f4f1d91b7c70efeb143.tar.xz hercules-1ee5255bc81b5057dae57f4f1d91b7c70efeb143.zip |
Disable using Megaphone while Rodex send mail window is present
This also fixes the issue where the client freezes when talking to a NPC while Rodex send mail window is present.
Diffstat (limited to 'src/map/clif.c')
-rw-r--r-- | src/map/clif.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/map/clif.c b/src/map/clif.c index f347a379a..fa01d31b5 100644 --- a/src/map/clif.c +++ b/src/map/clif.c @@ -22190,6 +22190,9 @@ static void clif_parse_rodex_open_write_mail(int fd, struct map_session_data *sd const struct PACKET_CZ_REQ_OPEN_WRITE_MAIL *rPacket = RFIFOP(fd, 0); int8 result = (rodex->isenabled() && (sd->npc_id == 0 || sd->state.using_megaphone != 0)) ? 1 : 0; + if (result == 1) + sd->state.workinprogress |= 2; + clif->rodex_open_write_mail(fd, rPacket->receiveName, result); } |