From 3b44872c6d1601abe33115a92cbb8e3e13d2bea5 Mon Sep 17 00:00:00 2001 From: Maximilian Philipps Date: Sun, 26 Jul 2009 00:27:41 +0200 Subject: prevent dead players from talking cause it is annoying when a skull kills them and they keep talking like nothing happend. --- src/map/clif.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/map') diff --git a/src/map/clif.c b/src/map/clif.c index 9357084..908e9ff 100644 --- a/src/map/clif.c +++ b/src/map/clif.c @@ -6507,7 +6507,7 @@ void clif_parse_GlobalMessage(int fd, struct map_session_data *sd) { // S 008c < if (malformed || !magic_message(sd, buf, msg_len)) { tmw_CheckChatSpam(sd, RFIFOP(fd,4)); - if (malformed) { + if ((malformed)||(pc_isdead(sd))) { free(buf); return; } -- cgit v1.2.3-70-g09d2