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:
parent
17223e8fe2
commit
b98a806d82
1 changed files with 4 additions and 2 deletions
|
@ -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++;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue