(age_levels): Simplify country status check for leaking tech. Don't

leak to countries in state STAT_NEW.
This commit is contained in:
Markus Armbruster 2006-01-07 09:26:49 +00:00
parent 604fe007c0
commit cd668a99a6

View file

@ -79,11 +79,7 @@ age_levels(int etu)
best_tech /= 5;
best_res /= 5;
for (i = 0; NULL != (np = getnatp(i)); i++) {
if (np->nat_stat == STAT_UNUSED)
continue;
if (np->nat_stat == STAT_GOD)
continue;
if (np->nat_stat == STAT_VIS)
if (np->nat_stat < STAT_SANCT || np->nat_stat == STAT_GOD)
continue;
level = np->nat_level[NAT_TLEV];
if (level < best_tech && chance(0.2))