]> git.pond.sub.org Git - empserver/commitdiff
Remove commented out logerror() calls
authorMarkus Armbruster <armbru@pond.sub.org>
Mon, 17 Nov 2008 02:13:36 +0000 (21:13 -0500)
committerMarkus Armbruster <armbru@pond.sub.org>
Sun, 14 Dec 2008 15:45:34 +0000 (10:45 -0500)
Probably ancient debug cruft.

src/lib/commands/buy.c
src/lib/commands/trad.c
src/lib/update/distribute.c
src/lib/update/nat.c
src/lib/update/revolt.c

index 7e4daf0498ec482141e0932a995fe45a0a66edd7..c2657e8e3bf15ace9e236ff95bc9eff1921fa661 100644 (file)
@@ -208,7 +208,6 @@ check_market(void)
     double gain;
     double price;
 
     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;
     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);
     }
        comm.com_owner = 0;
        putcomm(n, &comm);
     }
-/*    logerror("Done checking the market.\n");*/
     return RET_OK;
 }
     return RET_OK;
 }
index 5b0af5890b8642199868a8751f4762c76e5a46fa..4696b586c8ddf5f7f0aedbc4ed37c2f7a2ec7cae 100644 (file)
@@ -283,7 +283,6 @@ check_trade(void)
     float price;
     int saveid;
 
     float price;
     int saveid;
 
-/*    logerror("Checking the trades.\n");*/
     for (n = 0; gettrade(n, &trade); n++) {
        if (trade.trd_unitid < 0)
            continue;
     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);
           "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;
 }
 
     return RET_OK;
 }
 
index 685ab1fef9711144d3d588ac9412ca30bfadd3ee..91ae6b725e3e77b42960338479768a9fb4ac1ff2 100644 (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
             * dist sector to import what we need.
             */
             * 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;
                continue;
-           }
            amt = diff;
            if (item == I_CIVIL)
                amt_dist--;     /* Don't send your last civ */
            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.
             */
             * 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;
                continue;
-           }
            amt = diff;
            if (amt > amt_sect)
                amt = amt_sect;
            amt = diff;
            if (amt > amt_sect)
                amt = amt_sect;
index eba1ee283ce82979fab947a37fe406ddf386d39d..31587408d5cce74f1ede93f6cc9f43d14bf4e551 100644 (file)
@@ -274,6 +274,5 @@ share_incr(double *res, double *tech)
        if (tnc > 0) {
            tech[i] /= tnc * ally_factor;
        }
        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);*/
     }
 }
     }
 }
index d6fe613da5e018e4261820aa652b0f41f4efbb5a..6e5338551ecf8e6095f4d239b5f340b97b6fe600 100644 (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++;
        goto domove;
     }
        move++;
        goto domove;
     }
@@ -225,7 +224,6 @@ guerrilla(struct sctstr *sp)
        recruit++;
        convert++;
     } else if (che > mil && mil > 0) {
        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,
        /*
         * 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;
            if (n < 0)
                n = 0;
            sp->sct_loyal = n;
-           /*logerror("(#%d) mil beat che in %s", sp->sct_own, */
-           /*ownxy(sp)); */
        } else {
            convert++;
            recruit++;
        } else {
            convert++;
            recruit++;
-           /*logerror("(#%d) che beat mil in %s", sp->sct_own, */
-           /*ownxy(sp)); */
        }
        take_casualties(sp, mc);
     } else if (ratio < 5) {
        }
        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);
           "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 */
        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) {
        move++;
     }
     if (mil > 0 && che > 0) {
@@ -302,7 +292,6 @@ guerrilla(struct sctstr *sp)
            }
            take_casualties(sp, mc);
            recruit = 0;
            }
            take_casualties(sp, mc);
            recruit = 0;
-           /*logerror("Caught che; mc: %d, cc: %d", cc, mc); */
        }
     }
     if (convert && sp->sct_loyal >= 50) {
        }
     }
     if (convert && sp->sct_loyal >= 50) {