From b98a806d82d6b333155d61a0689ac07d53e60685 Mon Sep 17 00:00:00 2001 From: Markus Armbruster Date: Mon, 21 Nov 2011 07:20:01 +0100 Subject: [PATCH] Fix pending anno count for annos squashed together Adjacent announcements are squashed together when the sender is the same and the timestamp is "close enough". Except typed_wu() increments natstr member nat_ann regardless. Fix that to work exactly like nat_tgms. --- src/lib/subs/wu.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/lib/subs/wu.c b/src/lib/subs/wu.c index 5cd6ea23..84549a0d 100644 --- a/src/lib/subs/wu.c +++ b/src/lib/subs/wu.c @@ -167,8 +167,10 @@ typed_wu(natid from, natid to, char *message, int type) continue; if (!player->god && (getrejects(from, np) & REJ_ANNO)) continue; - np->nat_ann++; - putnat(np); + if (!np->nat_ann || !tel.tel_cont) { + np->nat_ann++; + putnat(np); + } } } else { if (!np->nat_tgms || !tel.tel_cont) {