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.
This commit is contained in:
Markus Armbruster 2011-11-21 07:20:01 +01:00
parent 17223e8fe2
commit b98a806d82

View file

@ -167,9 +167,11 @@ typed_wu(natid from, natid to, char *message, int type)
continue; continue;
if (!player->god && (getrejects(from, np) & REJ_ANNO)) if (!player->god && (getrejects(from, np) & REJ_ANNO))
continue; continue;
if (!np->nat_ann || !tel.tel_cont) {
np->nat_ann++; np->nat_ann++;
putnat(np); putnat(np);
} }
}
} else { } else {
if (!np->nat_tgms || !tel.tel_cont) { if (!np->nat_tgms || !tel.tel_cont) {
np->nat_tgms++; np->nat_tgms++;