diff --git a/src/lib/commands/buy.c b/src/lib/commands/buy.c index 7e4daf04..c2657e8e 100644 --- a/src/lib/commands/buy.c +++ b/src/lib/commands/buy.c @@ -208,7 +208,6 @@ check_market(void) double gain; double price; -/* logerror("Checking the market.\n");*/ for (n = 0; getcomm(n, &comm); n++) { if (comm.com_maxbidder == comm.com_owner || comm.com_owner == 0) continue; @@ -268,6 +267,5 @@ check_market(void) comm.com_owner = 0; putcomm(n, &comm); } -/* logerror("Done checking the market.\n");*/ return RET_OK; } diff --git a/src/lib/commands/trad.c b/src/lib/commands/trad.c index 5b0af589..4696b586 100644 --- a/src/lib/commands/trad.c +++ b/src/lib/commands/trad.c @@ -283,7 +283,6 @@ check_trade(void) float price; int saveid; -/* logerror("Checking the trades.\n");*/ for (n = 0; gettrade(n, &trade); n++) { if (trade.trd_unitid < 0) continue; @@ -402,8 +401,7 @@ check_trade(void) "The bidding is over & you bought %s #%d from %s for $%.2f\n", trade_nameof(&trade, &tg), saveid, cname(trade.trd_owner), price); - } -/* logerror("Done checking the trades.\n");*/ + } return RET_OK; } diff --git a/src/lib/update/distribute.c b/src/lib/update/distribute.c index 685ab1fe..91ae6b72 100644 --- a/src/lib/update/distribute.c +++ b/src/lib/update/distribute.c @@ -115,10 +115,8 @@ dodistribute(struct sctstr *sp, int imex, char *path, double dist_i_cost, * check to make sure have enough mobility in the * dist sector to import what we need. */ - if (dist->sct_mobil <= 0) { - /*logerror(" dist mobil < 0"); */ + if (dist->sct_mobil <= 0) continue; - } amt = diff; if (item == I_CIVIL) amt_dist--; /* Don't send your last civ */ @@ -154,10 +152,8 @@ dodistribute(struct sctstr *sp, int imex, char *path, double dist_i_cost, * also make sure that there's enough space in the * target sector to hold the required amt. */ - if (sp->sct_mobil <= 0) { - /*logerror(" sp mob is zero"); */ + if (sp->sct_mobil <= 0) continue; - } amt = diff; if (amt > amt_sect) amt = amt_sect; diff --git a/src/lib/update/nat.c b/src/lib/update/nat.c index eba1ee28..31587408 100644 --- a/src/lib/update/nat.c +++ b/src/lib/update/nat.c @@ -274,6 +274,5 @@ share_incr(double *res, double *tech) if (tnc > 0) { tech[i] /= tnc * ally_factor; } -/* logerror("Country #%d gets %g res from %d allies, %g tech from %d allies", i, res[i], rnc, tech[i], tnc);*/ } } diff --git a/src/lib/update/revolt.c b/src/lib/update/revolt.c index d6fe613d..6e533855 100644 --- a/src/lib/update/revolt.c +++ b/src/lib/update/revolt.c @@ -211,7 +211,6 @@ guerrilla(struct sctstr *sp) } if (sp->sct_own != target) { - /*logerror("own %d != target %d", sp->sct_own, target); */ move++; goto domove; } @@ -225,7 +224,6 @@ guerrilla(struct sctstr *sp) recruit++; convert++; } else if (che > mil && mil > 0) { - /*logerror("guerrilla shootout with military"); */ /* * shoot it out with the military, and kill them off. * If loyalty bad enough, then take the sector over, @@ -246,13 +244,9 @@ guerrilla(struct sctstr *sp) if (n < 0) n = 0; sp->sct_loyal = n; - /*logerror("(#%d) mil beat che in %s", sp->sct_own, */ - /*ownxy(sp)); */ } else { convert++; recruit++; - /*logerror("(#%d) che beat mil in %s", sp->sct_own, */ - /*ownxy(sp)); */ } take_casualties(sp, mc); } else if (ratio < 5) { @@ -272,13 +266,9 @@ guerrilla(struct sctstr *sp) "Production %s disrupted by terrorists in %s\n", effadv(n), ownxy(sp)); sect_damage(sp, n / 10); - /*logerror("(#%d) che blew up %s for %d", sp->sct_own, */ - /*ownxy(sp), n); */ recruit++; } else { /* ratio >= 5 */ - /*logerror("(#%d) %d che fleeing %d mil in %s", sp->sct_own, */ - /*che, mil, ownxy(sp)); */ move++; } if (mil > 0 && che > 0) { @@ -302,7 +292,6 @@ guerrilla(struct sctstr *sp) } take_casualties(sp, mc); recruit = 0; - /*logerror("Caught che; mc: %d, cc: %d", cc, mc); */ } } if (convert && sp->sct_loyal >= 50) {