When sending a telegram, typed_wu() checks whether the recipient is
rejecting telegrams. The check tacitly assumes from == player->cnum.
Happens to be the case, but clean it up anyway.
Signed-off-by: Markus Armbruster <armbru@pond.sub.org>
*
* Known contributors to this file:
* Steve McClure, 2000
- * Markus Armbruster, 2005-2015
+ * Markus Armbruster, 2005-2016
*/
#include <config.h>
#include "misc.h"
#include "nat.h"
#include "optlist.h"
-#include "player.h"
#include "prototypes.h"
#include "tel.h"
#include "update.h"
for (to = 0; NULL != (np = getnatp(to)); to++) {
if (np->nat_stat < STAT_SANCT)
continue;
- if (!player->god && (getrejects(from, np) & REJ_ANNO))
+ if (getnatp(from)->nat_stat != STAT_GOD
+ && (getrejects(from, np) & REJ_ANNO))
continue;
if (!np->nat_ann || !tel.tel_cont) {
np->nat_ann++;