Remove pointless check for sea from finish_sects()
Checking "sea or unowned" is pointless, because sea is always unowned.
This commit is contained in:
parent
6eecd9cdc8
commit
5333782046
1 changed files with 2 additions and 2 deletions
|
@ -100,7 +100,7 @@ finish_sects(int etu)
|
||||||
|
|
||||||
logerror("exporting...");
|
logerror("exporting...");
|
||||||
for (n = 0; NULL != (sp = getsectid(n)); n++) {
|
for (n = 0; NULL != (sp = getsectid(n)); n++) {
|
||||||
if (sp->sct_type == SCT_WATER || sp->sct_own == 0)
|
if (!sp->sct_own)
|
||||||
continue;
|
continue;
|
||||||
np = getnatp(sp->sct_own);
|
np = getnatp(sp->sct_own);
|
||||||
if (np->nat_money < 0)
|
if (np->nat_money < 0)
|
||||||
|
@ -111,7 +111,7 @@ finish_sects(int etu)
|
||||||
|
|
||||||
logerror("importing...");
|
logerror("importing...");
|
||||||
for (n = 0; NULL != (sp = getsectid(n)); n++) {
|
for (n = 0; NULL != (sp = getsectid(n)); n++) {
|
||||||
if (sp->sct_type == SCT_WATER || sp->sct_own == 0)
|
if (!sp->sct_own)
|
||||||
continue;
|
continue;
|
||||||
np = getnatp(sp->sct_own);
|
np = getnatp(sp->sct_own);
|
||||||
if (np->nat_money < 0)
|
if (np->nat_money < 0)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue