]> git.pond.sub.org Git - empserver/commitdiff
Use #if 0 to disable code, not comments
authorMarkus Armbruster <armbru@pond.sub.org>
Mon, 17 Nov 2008 02:19:37 +0000 (21:19 -0500)
committerMarkus Armbruster <armbru@pond.sub.org>
Sun, 14 Dec 2008 15:45:35 +0000 (10:45 -0500)
src/lib/subs/lndsub.c
src/lib/subs/shpsub.c

index 4913383e5fff9c4a9a2af569b03e2c5e58c3c299..39b0b83f944c9ced35f9a6ec6c7075d9851d59bf 100644 (file)
@@ -297,10 +297,10 @@ lnd_takemob(struct emp_qelem *list, double loss)
     for (qp = list->q_forw; qp != list; qp = next) {
        next = qp->q_forw;
        llp = (struct ulist *)qp;
-/*
-               if (chance(loss))
-                       use_supply(&llp->unit.land);
- */
+#if 0
+       if (chance(loss))
+           use_supply(&llp->unit.land);
+#endif
        new = llp->unit.land.lnd_mobil - mcost;
        if (new < -127)
            new = -127;
index 56abb29abf87f4477919d5aac176574c0a7c468a..67576ed0b2d60f49fdaf5b1fdeb9c6788788489d 100644 (file)
@@ -611,11 +611,11 @@ shp_fort_interdiction(struct emp_qelem *list, coord newx, coord newy,
            continue;
        totdam += dam;
        mpr(victim, "Incoming fire does %d damage!\n", dam);
-/*
-  mpr(victim, "%s fires at you for %d!\n",
-  xyas(fsect.sct_x,fsect.sct_y,victim),
-  dam);
-*/
+#if 0
+       mpr(victim, "%s fires at you for %d!\n",
+           xyas(fsect.sct_x,fsect.sct_y,victim),
+           dam);
+#endif
        wu(0, fsect.sct_own,
           "%s fires at %s ships in %s for %d!\n",
           xyas(fsect.sct_x, fsect.sct_y,