Probably ancient debug cruft.
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;
comm.com_owner = 0;
putcomm(n, &comm);
}
-/* logerror("Done checking the market.\n");*/
return RET_OK;
}
float price;
int saveid;
-/* logerror("Checking the trades.\n");*/
for (n = 0; gettrade(n, &trade); n++) {
if (trade.trd_unitid < 0)
continue;
"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;
}
* 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 */
* 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;
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);*/
}
}
}
if (sp->sct_own != target) {
- /*logerror("own %d != target %d", sp->sct_own, target); */
move++;
goto domove;
}
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,
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) {
"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) {
}
take_casualties(sp, mc);
recruit = 0;
- /*logerror("Caught che; mc: %d, cc: %d", cc, mc); */
}
}
if (convert && sp->sct_loyal >= 50) {