]> git.pond.sub.org Git - empserver/commitdiff
Remove pointless check for sea from finish_sects()
authorMarkus Armbruster <armbru@pond.sub.org>
Fri, 25 Feb 2011 18:45:46 +0000 (19:45 +0100)
committerMarkus Armbruster <armbru@pond.sub.org>
Mon, 11 Apr 2011 20:29:13 +0000 (22:29 +0200)
Checking "sea or unowned" is pointless, because sea is always unowned.

src/lib/update/finish.c

index 266c6533f3511cef18f37034b7d9384f8af5f72c..605d3dd651a128efacae986fb4c624dc3f7b0cf0 100644 (file)
@@ -100,7 +100,7 @@ finish_sects(int etu)
 
     logerror("exporting...");
     for (n = 0; NULL != (sp = getsectid(n)); n++) {
-       if (sp->sct_type == SCT_WATER || sp->sct_own == 0)
+       if (!sp->sct_own)
            continue;
        np = getnatp(sp->sct_own);
        if (np->nat_money < 0)
@@ -111,7 +111,7 @@ finish_sects(int etu)
 
     logerror("importing...");
     for (n = 0; NULL != (sp = getsectid(n)); n++) {
-       if (sp->sct_type == SCT_WATER || sp->sct_own == 0)
+       if (!sp->sct_own)
            continue;
        np = getnatp(sp->sct_own);
        if (np->nat_money < 0)