]> git.pond.sub.org Git - empserver/commitdiff
(nreport): Simplify.
authorMarkus Armbruster <armbru@pond.sub.org>
Tue, 11 Oct 2005 19:31:33 +0000 (19:31 +0000)
committerMarkus Armbruster <armbru@pond.sub.org>
Tue, 11 Oct 2005 19:31:33 +0000 (19:31 +0000)
src/lib/subs/nreport.c

index ff0d40dc344cb94c02a6678081e74e4d634f05a8..28eb0129283cfdcdd340300509859c8ecb7bb211 100644 (file)
@@ -54,7 +54,6 @@ void
 nreport(natid actor, int event, natid victim, int times)
 {
     int nice;
-    int rel;
     struct natstr *natp;
     struct newscache *ncp;
 
@@ -77,17 +76,10 @@ nreport(natid actor, int event, natid victim, int times)
        return;
     if ((natp = getnatp(victim)) == 0)
        return;
-    if ((rel = getrel(natp, actor)) < HOSTILE)
+    if (getrel(natp, actor) < HOSTILE)
        return;
 
-    rel = HOSTILE;
-/*
-       if (rel > HOSTILE)
-               rel = HOSTILE;
-       else
-               rel = AT_WAR;
- */
-    setrel(victim, actor, rel);
+    setrel(victim, actor, HOSTILE);
 }
 
 /*