Remove commented out logerror() calls
Probably ancient debug cruft.
This commit is contained in:
parent
cebba0587c
commit
1417a3442d
5 changed files with 3 additions and 23 deletions
|
@ -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;
|
||||
}
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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);*/
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue