Remove commented out logerror() calls

Probably ancient debug cruft.
This commit is contained in:
Markus Armbruster 2008-11-16 21:13:36 -05:00
parent cebba0587c
commit 1417a3442d
5 changed files with 3 additions and 23 deletions

View file

@ -208,7 +208,6 @@ check_market(void)
double gain; double gain;
double price; double price;
/* logerror("Checking the market.\n");*/
for (n = 0; getcomm(n, &comm); n++) { for (n = 0; getcomm(n, &comm); n++) {
if (comm.com_maxbidder == comm.com_owner || comm.com_owner == 0) if (comm.com_maxbidder == comm.com_owner || comm.com_owner == 0)
continue; continue;
@ -268,6 +267,5 @@ check_market(void)
comm.com_owner = 0; comm.com_owner = 0;
putcomm(n, &comm); putcomm(n, &comm);
} }
/* logerror("Done checking the market.\n");*/
return RET_OK; return RET_OK;
} }

View file

@ -283,7 +283,6 @@ check_trade(void)
float price; float price;
int saveid; int saveid;
/* logerror("Checking the trades.\n");*/
for (n = 0; gettrade(n, &trade); n++) { for (n = 0; gettrade(n, &trade); n++) {
if (trade.trd_unitid < 0) if (trade.trd_unitid < 0)
continue; continue;
@ -403,7 +402,6 @@ check_trade(void)
trade_nameof(&trade, &tg), saveid, cname(trade.trd_owner), trade_nameof(&trade, &tg), saveid, cname(trade.trd_owner),
price); price);
} }
/* logerror("Done checking the trades.\n");*/
return RET_OK; return RET_OK;
} }

View file

@ -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 * check to make sure have enough mobility in the
* dist sector to import what we need. * dist sector to import what we need.
*/ */
if (dist->sct_mobil <= 0) { if (dist->sct_mobil <= 0)
/*logerror(" dist mobil < 0"); */
continue; continue;
}
amt = diff; amt = diff;
if (item == I_CIVIL) if (item == I_CIVIL)
amt_dist--; /* Don't send your last civ */ 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 * also make sure that there's enough space in the
* target sector to hold the required amt. * target sector to hold the required amt.
*/ */
if (sp->sct_mobil <= 0) { if (sp->sct_mobil <= 0)
/*logerror(" sp mob is zero"); */
continue; continue;
}
amt = diff; amt = diff;
if (amt > amt_sect) if (amt > amt_sect)
amt = amt_sect; amt = amt_sect;

View file

@ -274,6 +274,5 @@ share_incr(double *res, double *tech)
if (tnc > 0) { if (tnc > 0) {
tech[i] /= tnc * ally_factor; 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);*/
} }
} }

View file

@ -211,7 +211,6 @@ guerrilla(struct sctstr *sp)
} }
if (sp->sct_own != target) { if (sp->sct_own != target) {
/*logerror("own %d != target %d", sp->sct_own, target); */
move++; move++;
goto domove; goto domove;
} }
@ -225,7 +224,6 @@ guerrilla(struct sctstr *sp)
recruit++; recruit++;
convert++; convert++;
} else if (che > mil && mil > 0) { } else if (che > mil && mil > 0) {
/*logerror("guerrilla shootout with military"); */
/* /*
* shoot it out with the military, and kill them off. * shoot it out with the military, and kill them off.
* If loyalty bad enough, then take the sector over, * If loyalty bad enough, then take the sector over,
@ -246,13 +244,9 @@ guerrilla(struct sctstr *sp)
if (n < 0) if (n < 0)
n = 0; n = 0;
sp->sct_loyal = n; sp->sct_loyal = n;
/*logerror("(#%d) mil beat che in %s", sp->sct_own, */
/*ownxy(sp)); */
} else { } else {
convert++; convert++;
recruit++; recruit++;
/*logerror("(#%d) che beat mil in %s", sp->sct_own, */
/*ownxy(sp)); */
} }
take_casualties(sp, mc); take_casualties(sp, mc);
} else if (ratio < 5) { } else if (ratio < 5) {
@ -272,13 +266,9 @@ guerrilla(struct sctstr *sp)
"Production %s disrupted by terrorists in %s\n", "Production %s disrupted by terrorists in %s\n",
effadv(n), ownxy(sp)); effadv(n), ownxy(sp));
sect_damage(sp, n / 10); sect_damage(sp, n / 10);
/*logerror("(#%d) che blew up %s for %d", sp->sct_own, */
/*ownxy(sp), n); */
recruit++; recruit++;
} else { } else {
/* ratio >= 5 */ /* ratio >= 5 */
/*logerror("(#%d) %d che fleeing %d mil in %s", sp->sct_own, */
/*che, mil, ownxy(sp)); */
move++; move++;
} }
if (mil > 0 && che > 0) { if (mil > 0 && che > 0) {
@ -302,7 +292,6 @@ guerrilla(struct sctstr *sp)
} }
take_casualties(sp, mc); take_casualties(sp, mc);
recruit = 0; recruit = 0;
/*logerror("Caught che; mc: %d, cc: %d", cc, mc); */
} }
} }
if (convert && sp->sct_loyal >= 50) { if (convert && sp->sct_loyal >= 50) {