]> git.pond.sub.org Git - empserver/blobdiff - src/lib/update/finish.c
Update copyright notice
[empserver] / src / lib / update / finish.c
index 76d9bebbad8cd6ad7cb7ac32ba059cc3992209dc..a9dace42c6782e1a86052ccf80a3d84047edc347 100644 (file)
@@ -1,6 +1,6 @@
 /*
  *  Empire - A multi-player, client/server Internet based war game.
- *  Copyright (C) 1986-2016, Dave Pare, Jeff Bailey, Thomas Ruschak,
+ *  Copyright (C) 1986-2021, Dave Pare, Jeff Bailey, Thomas Ruschak,
  *                Ken Stevens, Steve McClure, Markus Armbruster
  *
  *  Empire is free software: you can redistribute it and/or modify
@@ -37,8 +37,6 @@
 
 #include <stdlib.h>
 #include <sys/resource.h>
-#include "file.h"
-#include "nat.h"
 #include "optlist.h"
 #include "path.h"
 #include "sect.h"
@@ -67,9 +65,7 @@ finish_sects(int etu)
     logerror("delivering...\n");
     /* Do deliveries */
     for (n = 0; NULL != (sp = getsectid(n)); n++) {
-       if (sp->sct_type == SCT_WATER)
-           continue;
-       if (sp->sct_own == 0)
+       if (!sp->sct_own || sp->sct_type == SCT_SANCT)
            continue;
        if (nat_budget[sp->sct_own].money < 0)
            continue;
@@ -89,7 +85,7 @@ finish_sects(int etu)
 
     logerror("exporting...");
     for (n = 0; NULL != (sp = getsectid(n)); n++) {
-       if (!sp->sct_own)
+       if (!sp->sct_own || sp->sct_type == SCT_SANCT)
            continue;
        if (nat_budget[sp->sct_own].money < 0)
            continue;
@@ -100,7 +96,7 @@ finish_sects(int etu)
     logerror("importing...");
     for (n = 0; NULL != (sp = getsectid(n)); n++) {
        sp->sct_off = 0;
-       if (!sp->sct_own)
+       if (!sp->sct_own || sp->sct_type == SCT_SANCT)
            continue;
        if (nat_budget[sp->sct_own].money < 0)
            continue;