]> git.pond.sub.org Git - empserver/commitdiff
Line breaks and other formatting issues. No functional changes.
authorMarkus Armbruster <armbru@pond.sub.org>
Sun, 21 May 2006 13:05:24 +0000 (13:05 +0000)
committerMarkus Armbruster <armbru@pond.sub.org>
Sun, 21 May 2006 13:05:24 +0000 (13:05 +0000)
37 files changed:
include/misc.h
include/prototypes.h
src/client/ioqueue.h
src/client/servcmd.c
src/lib/as/as_delete.c
src/lib/commands/cede.c
src/lib/commands/conv.c
src/lib/commands/foll.c
src/lib/commands/look.c
src/lib/commands/mfir.c
src/lib/commands/move.c
src/lib/commands/orde.c
src/lib/commands/rang.c
src/lib/commands/sona.c
src/lib/commands/torp.c
src/lib/commands/trad.c
src/lib/commands/upgr.c
src/lib/common/wantupd.c
src/lib/empthread/ntthread.c
src/lib/empthread/pthread.c
src/lib/player/accept.c
src/lib/subs/aircombat.c
src/lib/subs/attsub.c
src/lib/subs/chkmoney.c
src/lib/subs/move.c
src/lib/subs/mslsub.c
src/lib/subs/nuke.c
src/lib/subs/plane.c
src/lib/subs/plnsub.c
src/lib/subs/rej.c
src/lib/subs/retreat.c
src/lib/subs/satmap.c
src/lib/subs/ship.c
src/lib/subs/show.c
src/lib/subs/trdsub.c
src/lib/update/nav_ship.c
src/server/shutdown.c

index 61c2518b7d18c4a282f191369065b051b11b2a06..ad118395267c68ca5a6c1978cc6c319ce76146a2 100644 (file)
@@ -78,9 +78,11 @@ struct mob_acc_globals {
 #define ATTRIBUTE(attrs)
 #endif
 
-/* This uses a lot of thread stack with some versions of GNU libc,
-   which can lead to nasty heap smashes (observed with 2.2.93).
-   Disabled for now, until we readjust thread stack sizes.  */
+/*
+ * This uses a lot of thread stack with some versions of GNU libc,
+ * which can lead to nasty heap smashes (observed with 2.2.93).
+ * Disabled for now, until we readjust thread stack sizes.
+ */
 #if 0
 #define RESOLVE_IPADDRESS      /* resolve ip addresses into hostnames */
 #endif
index 8701cae7511483b7234c0ab32cd3636c92b5f1aa..ea762638fdfeb2e6dd13e0ab8f72b0737c5e84be 100644 (file)
@@ -602,11 +602,7 @@ extern int ufindpfx(char *, int);
 
 /* radmap.c */
 extern int deltx(struct range *, coord);
-               /* Prototype include a typedef name.
-                  It should be moved after the typedef declaration */
 extern int delty(struct range *, coord);
-               /* Prototype include a typedef name.
-                  It should be moved after the typedef declaration */
 extern void radmap(int, int, int, int, double);
 extern void radmapnopr(int, int, int, int, double);
 extern void radmapupd(int, int, int, int, int, double);
index 860d479cdda882f4f802684db7dbbbe7cb51b0b1..c8565b0b998a0afd617d63bb6bfefc1b9a11e509 100644 (file)
@@ -45,7 +45,7 @@ struct io {
     struct qelem queue;                /* list of ioqueue elements */
     int nbytes;                        /* number of data bytes present */
     int offset;                        /* offset into current entry */
-    char *data;                /* pointer to start */
+    char *data;                        /* pointer to start */
 };
 
 void ioq_init(struct ioqueue *ioq, int bsize);
index ce14976e20907d91da17320dff16d4646717acac..fbf3fb9adca711eceabfb0244c77d64d8dd33e50 100644 (file)
@@ -282,11 +282,12 @@ doexecute(char *p, FILE *auxfi)
     /* copies 4k at a time to the socket */
     while (termio(fd, sock, auxfi))    /*do copy */
        ;
-    /* Some platforms don't send the eof (cntl-D) at the end of
-       copying a file.  If emp_client hangs at the end of an
-       execute, include the following line and notify wolfpack
-       of the platform you are using.
-       sendeof(sock);
+    /*
+     * Some platforms don't send the eof (cntl-D) at the end of
+     * copying a file.  If emp_client hangs at the end of an
+     * execute, include the following line and notify wolfpack
+     * of the platform you are using.
+     * sendeof(sock);
      */
     close(fd);
     free(tag);
index f536bdff05b690b5d799c3ee8c7954daeb732dde..4041c7fd42c547d3ed318160b3b688cab2e05122 100644 (file)
@@ -32,7 +32,6 @@ static void as_free_queue(struct as_queue *queue);
 void
 as_reset(struct as_data *adp)
 {
-
     as_free_queue(adp->head);
     adp->head = NULL;
     as_free_queue(adp->tried);
index 670e5af3bd4baf193d372cfa795aa5f1b5a2342d..87f8845840f659599e3506025b516ddf8a3ac013 100644 (file)
@@ -250,8 +250,8 @@ grab_sect(struct sctstr *sp, natid to)
        if (lp->lnd_own != player->cnum)
            continue;
 
-       wu(0, to, "\t%s ceded to you by %s\n", prland(lp),
-          cname(player->cnum));
+       wu(0, to, "\t%s ceded to you by %s\n",
+          prland(lp), cname(player->cnum));
        makelost(EF_LAND, lp->lnd_own, lp->lnd_uid, lp->lnd_x, lp->lnd_y);
        makenotlost(EF_LAND, to, lp->lnd_uid, lp->lnd_x, lp->lnd_y);
        lp->lnd_own = to;
index 160daa929b3b6730684bfbd0c0bde7ba8e907954..4c340422fb2ee902ab91f64a94066622d8f32c33 100644 (file)
@@ -96,7 +96,7 @@ do_conv(struct nstr_sect nstr, int uwtoconvert, int for_real)
 
        /*
         * Military units count according to the number of
-        * mil in them. (i.e. attack/defense modified don't
+        * mil in them. (i.e. attack/defense modifier don't
         * count.
         */
        snxtitem_xy(&ni, EF_LAND, sect.sct_x, sect.sct_y);
index df60a181e2330713e1575bf2d745990a8dac032e..307cd0fad05cfc4646d3d6814518b502f8d71602 100644 (file)
@@ -78,8 +78,8 @@ foll(void)
        if (!player->owner)
            continue;
        if (ship.shp_x != x || ship.shp_y != y) {
-           pr("Ship #%d not in same sector as #%d\n", ship.shp_uid,
-              leader);
+           pr("Ship #%d not in same sector as #%d\n",
+              ship.shp_uid, leader);
            continue;
        }
        if (ship.shp_uid == leader) {
index c0329de6cd5bfccc9c5ee3588024859042be80ce..e482dcc6a51aab7e258e88c41df1d1fbd26dd9d8 100644 (file)
@@ -97,10 +97,12 @@ look(void)
            civ = sect.sct_item[I_CIVIL];
            mil = sect.sct_item[I_MILIT];
            if (civ)
-               pr("with %s%d civ ", player->owner ? "" : "approx ",
+               pr("with %s%d civ ",
+                  player->owner ? "" : "approx ",
                   player->owner ? civ : roundintby(civ, 10));
            if (mil)
-               pr("with %s%d mil ", player->owner ? "" : "approx ",
+               pr("with %s%d mil ",
+                  player->owner ? "" : "approx ",
                   player->owner ? mil : roundintby(mil, 10));
            pr("@ %s\n", xyas(x, y, player->cnum));
            if (opt_HIDDEN) {
index fc362ef9034763a6a8792ecc21844377848cbf5b..8348f800a29a7077337784ab1da792cf849ddb4c 100644 (file)
@@ -342,8 +342,8 @@ multifire(void)
                continue;
            }
            if (fship.shp_effic < 60) {
-               pr("Ship #%d is crippled (%d%%)\n", fshipno,
-                  fship.shp_effic);
+               pr("Ship #%d is crippled (%d%%)\n",
+                  fshipno, fship.shp_effic);
                continue;
            }
            range = effrange(fship.shp_frnge, fship.shp_tech);
index e32d91dea544bf8e5156170d694eb4b34e539509..ae4f41447738d863d77fbcd0945cb5280b5b9b59 100644 (file)
@@ -170,8 +170,9 @@ move(void)
        }
        amt_src = start.sct_item[vtype];
        if (amt_src < amount) {
-           pr("Only %d %s left in %s!\n", amt_src,
-              ip->i_name, xyas(start.sct_x, start.sct_y, player->cnum));
+           pr("Only %d %s left in %s!\n",
+              amt_src, ip->i_name,
+              xyas(start.sct_x, start.sct_y, player->cnum));
            amount = amt_src;
            amt_src = 0;
        } else
index 72fe1d978624ba6643346b5653c6bbe885a80eaf..23c3bb355e0e8bfc9f5ffb02aadfe1c3a43e4899 100644 (file)
@@ -451,14 +451,14 @@ sorde(void)
 
        if (ship.shp_autonav & AN_AUTONAV) {
            /* Destination 1 */
-           prxy(" %3d,%-3d", ship.shp_destx[1],
-                ship.shp_desty[1], player->cnum);
+           prxy(" %3d,%-3d",
+                ship.shp_destx[1], ship.shp_desty[1], player->cnum);
 
            /* Destination 2 */
            if ((ship.shp_destx[1] != ship.shp_destx[0])
                || (ship.shp_desty[1] != ship.shp_desty[0])) {
-               prxy(" %3d,%-3d", ship.shp_destx[0],
-                    ship.shp_desty[0], player->cnum);
+               prxy(" %3d,%-3d",
+                    ship.shp_destx[0], ship.shp_desty[0], player->cnum);
            } else
                pr("        ");
 
index 702be1c6f396bb573fb92fb2e6182854e5df4fe0..cfb782261d14b71812c142fcef2ffc364760fc0f 100644 (file)
@@ -62,8 +62,8 @@ range(void)
            continue;
        plane.pln_range = (plane.pln_range_max < i) ?
            plane.pln_range_max : i;
-       pr("Plane %d range changed to %d\n", plane.pln_uid,
-          plane.pln_range);
+       pr("Plane %d range changed to %d\n",
+          plane.pln_uid, plane.pln_range);
 
        putplane(plane.pln_uid, &plane);
     }
@@ -96,8 +96,8 @@ lrange(void)
        if ((i = atoi(p)) < 0)
            continue;
        land.lnd_rad_max = (i < land.lnd_rad) ? i : land.lnd_rad;
-       pr("%s reaction radius changed to %d\n", prland(&land),
-          land.lnd_rad_max);
+       pr("%s reaction radius changed to %d\n",
+          prland(&land), land.lnd_rad_max);
        putland(land.lnd_uid, &land);
     }
 
index aa32feea7215d1a2dfc7735e4f1a841c1c6c3260..75c7308a322a07af183462ba0182bafde39aa67c 100644 (file)
@@ -191,12 +191,12 @@ sona(void)
                       prship(&targ),
                       xyas(targ.shp_x, targ.shp_y, player->cnum));
                else
-                   pr("Sonar detects %s %s @ %s\n", cname(targ.shp_own),
-                      prship(&targ),
+                   pr("Sonar detects %s %s @ %s\n",
+                      cname(targ.shp_own), prship(&targ),
                       xyas(targ.shp_x, targ.shp_y, player->cnum));
            } else
-               pr("Sonar detects %s %s @ %s\n", cname(targ.shp_own),
-                  prship(&targ),
+               pr("Sonar detects %s %s @ %s\n",
+                  cname(targ.shp_own), prship(&targ),
                   xyas(targ.shp_x, targ.shp_y, player->cnum));
 
            if (targ.shp_visib > vis[y][x]) {
@@ -295,8 +295,8 @@ plane_sona(struct emp_qelem *plane_list, int x, int y,
                        prship(targ),
                        xyas(targ->shp_x, targ->shp_y, pp->pln_own));
            else
-               mpr(pp->pln_own, "%s %s @ %s\n", cname(targ->shp_own),
-                   prship(targ),
+               mpr(pp->pln_own, "%s %s @ %s\n",
+                   cname(targ->shp_own), prship(targ),
                    xyas(targ->shp_x, targ->shp_y, pp->pln_own));
        }
     }
index 2a8e22ca07455e6e906d1ce2455f395f4d9cb4ba..37bc837b5f1e518fab83dbaf1764dfebe60565f9 100644 (file)
@@ -109,8 +109,8 @@ torp(void)
            continue;
        }
        if ((mchr[(int)sub.shp_type].m_flags & M_TORP) == 0) {
-           pr("Ship # %d: A %s can't fire torpedoes!\n", sub.shp_uid,
-              mchr[(int)sub.shp_type].m_name);
+           pr("Ship # %d: A %s can't fire torpedoes!\n",
+              sub.shp_uid, mchr[(int)sub.shp_type].m_name);
            continue;
        }
        shells = sub.shp_item[I_SHELL];
index f942d4b6c6c28f2ee093d4b0003682242fb134ea..f9933c8da7db49e7e95a7f69ed8356db9ee1445c 100644 (file)
@@ -114,8 +114,8 @@ trad(void)
            TRADE_DELAY / 3600.0 - (now - trade.trd_markettime) / 3600.0;
        if (tleft < 0.0)
            tleft = 0.0;
-       pr("$%7ld  %2d %5.2f hrs ", trade.trd_price,
-          trade.trd_maxbidder, tleft);
+       pr("$%7ld  %2d %5.2f hrs ",
+          trade.trd_price, trade.trd_maxbidder, tleft);
        (void)trade_desc(&trade, &tg);  /* XXX */
        pr("\n");
        if (trade.trd_owner == player->cnum && !player->god)
index f88a9cc51d2fffb8b231765da3dabf43ac28a762..90d7623bb218a5d16e66dca5fef86e07dbb877d8 100644 (file)
@@ -128,8 +128,8 @@ lupgr(void)
            continue;
        }
        if (land.lnd_tech >= tlev) {
-           pr("%s tech: %d, yours is only %d\n", prland(&land),
-              land.lnd_tech, tlev);
+           pr("%s tech: %d, yours is only %d\n",
+              prland(&land), land.lnd_tech, tlev);
            continue;
        }
        cost = lp->l_cost * UPGR_COST / 100;
@@ -149,8 +149,8 @@ lupgr(void)
        putland(land.lnd_uid, &land);
        putsect(&sect);
        player->dolcost += cost;
-       pr("%s upgraded to tech %d, at a cost of %d\n", prland(&land),
-          land.lnd_tech, cost);
+       pr("%s upgraded to tech %d, at a cost of %d\n",
+          prland(&land), land.lnd_tech, cost);
        if (land.lnd_own != player->cnum)
            wu(0, land.lnd_own,
               "%s upgraded by %s to tech %d, at a cost of %d\n",
@@ -212,8 +212,8 @@ supgr(void)
            continue;
        }
        if (ship.shp_tech >= tlev) {
-           pr("%s tech: %d, yours is only %d\n", prship(&ship),
-              ship.shp_tech, tlev);
+           pr("%s tech: %d, yours is only %d\n",
+              prship(&ship), ship.shp_tech, tlev);
            continue;
        }
        cost = mp->m_cost * UPGR_COST / 100;
@@ -232,8 +232,8 @@ supgr(void)
        putship(ship.shp_uid, &ship);
        putsect(&sect);
        player->dolcost += cost;
-       pr("%s upgraded to tech %d, at a cost of %d\n", prship(&ship),
-          ship.shp_tech, cost);
+       pr("%s upgraded to tech %d, at a cost of %d\n",
+          prship(&ship), ship.shp_tech, cost);
        if (ship.shp_own != player->cnum)
            wu(0, ship.shp_own,
               "%s upgraded by %s to tech %d, at a cost of %d\n",
@@ -295,8 +295,8 @@ pupgr(void)
            continue;
        }
        if (plane.pln_tech >= tlev) {
-           pr("%s tech: %d, yours is only %d\n", prplane(&plane),
-              plane.pln_tech, tlev);
+           pr("%s tech: %d, yours is only %d\n",
+              prplane(&plane), plane.pln_tech, tlev);
            continue;
        }
        cost = pp->pl_cost * UPGR_COST / 100;
@@ -320,8 +320,8 @@ pupgr(void)
        putplane(plane.pln_uid, &plane);
        putsect(&sect);
        player->dolcost += cost;
-       pr("%s upgraded to tech %d, at a cost of %d\n", prplane(&plane),
-          plane.pln_tech, cost);
+       pr("%s upgraded to tech %d, at a cost of %d\n",
+          prplane(&plane), plane.pln_tech, cost);
        if (plane.pln_own != player->cnum)
            wu(0, plane.pln_own,
               "%s upgraded by %s to tech %d, at a cost of %d\n",
index 1e71bf6bbbaf58c34b296e3fa2e384fd3dd4fcae..e85e76ec8e26e52391e7f69d08c6f6dc396c4fa1 100644 (file)
@@ -184,7 +184,8 @@ demand_check(void)
     return 1;
 }
 
-/* Check if enough countries want an update,
+/*
+ * Check if enough countries want an update,
  * and if demand updates are allowed now.
  */
 int
@@ -198,7 +199,8 @@ demandupdatecheck(void)
     return demand_check();
 }
 
-/* Is it time for a regular or scheduled update?
+/*
+ * Is it time for a regular or scheduled update?
  * As well, if none of the above, check to see if
  * a demand update can occur.
  */
@@ -230,7 +232,8 @@ updatetime(time_t *now)
     return 0;
 }
 
-/* Return the time, and delta seconds, of the next update.
+/*
+ * Return the time, and delta seconds, of the next update.
  * If the policy is no regular updates, return the time of
  * the next possible check.
  */
index 5a6a738b17b1bf9641af111deab222489f8dfca3..0fb8c4cc684ffc8e27ab3459e484ca8d16f06916 100644 (file)
@@ -437,8 +437,8 @@ empth_create(int prio, void (*entry)(void *), int size, int flags,
 
     pThread = malloc(sizeof(*pThread));
     if (!pThread) {
-       logerror("not enough memory to create thread: %s (%s)", name,
-                desc);
+       logerror("not enough memory to create thread: %s (%s)",
+                name, desc);
        return NULL;
     }
     memset(pThread, 0, sizeof(*pThread));
@@ -457,8 +457,8 @@ empth_create(int prio, void (*entry)(void *), int size, int flags,
 
     pThread->ulThreadID = _beginthread(empth_threadMain, size, pThread);
     if (pThread->ulThreadID == -1) {
-       logerror("can not create thread: %s (%s): %s", name, desc,
-                strerror(errno));
+       logerror("can not create thread: %s (%s): %s",
+                name, desc, strerror(errno));
        goto bad;
     }
 
index fce8619e599378023f1ac5230472b55b854acc0d..6ada23fd8423dcfe3f95628d7b7d27be9572ca8a 100644 (file)
@@ -91,7 +91,8 @@ static void **udata;
  */
 static pthread_mutex_t mtx_ctxsw;
 
-static void empth_status(char *format, ...) ATTRIBUTE((format (printf, 1, 2)));
+static void empth_status(char *format, ...)
+    ATTRIBUTE((format (printf, 1, 2)));
 static void empth_alarm(int sig);
 
 static void *
@@ -163,7 +164,6 @@ empth_init(void **ctx_ptr, int flags)
     empth_t *ctx;
     struct sigaction act;
 
-
     pthread_key_create(&ctx_key, NULL);
     pthread_mutex_init(&mtx_ctxsw, NULL);
 
@@ -211,8 +211,8 @@ empth_create(int prio, void (*entry)(void *), int size, int flags,
 
     ctx = malloc(sizeof(empth_t));
     if (!ctx) {
-       logerror("not enough memory to create thread: %s (%s)", name,
-                desc);
+       logerror("not enough memory to create thread: %s (%s)",
+                name, desc);
        return NULL;
     }
     ctx->name = strdup(name);
@@ -223,8 +223,8 @@ empth_create(int prio, void (*entry)(void *), int size, int flags,
 
     eno = pthread_attr_init(&attr);
     if (eno) {
-       logerror("can not create thread attribute %s (%s): %s", name, desc,
-                strerror(eno));
+       logerror("can not create thread attribute %s (%s): %s",
+                name, desc, strerror(eno));
        goto bad;
     }
     if (size < PTHREAD_STACK_MIN)
@@ -234,8 +234,8 @@ empth_create(int prio, void (*entry)(void *), int size, int flags,
 
     eno = pthread_create(&t, &attr, empth_start, ctx);
     if (eno) {
-       logerror("can not create thread: %s (%s): %s", name, desc,
-                strerror(eno));
+       logerror("can not create thread: %s (%s): %s",
+                name, desc, strerror(eno));
        goto bad;
     }
     empth_status("new thread id is %ld", (long)t);
index 4c8b722f8ab1d5cf6a8af031cb0db59b661af635..d2f8ae0e29469ef5a0cf94e795d36b4a2bae9ef1 100644 (file)
@@ -204,7 +204,7 @@ player_accept(void *unused)
        empth_select(s, EMPTH_FD_READ);
        len = player_addrlen;
        ns = accept(s, sap, &len);
-       /* FIXME accept() can block on some systems (RST after select() reported s ready) */
+       /* FIXME accept() can block on some systems (RST after select() reports ready) */
        if (ns < 0) {
            logerror("new socket accept");
            continue;
index d43136b4c1e068ed7d3f9849ed9a2d159e702a21..106e4eaec7b805e2fb37f440c0e9f516a6827182 100644 (file)
@@ -313,8 +313,8 @@ ac_encounter(struct emp_qelem *bomb_list, struct emp_qelem *esc_list,
                             oesc);
                    gotilist[cn]++;
                }
-               PR(plane_owner, "Flying over %s ships in %s\n", cname(cn),
-                  xyas(x, y, plane_owner));
+               PR(plane_owner, "Flying over %s ships in %s\n",
+                  cname(cn), xyas(x, y, plane_owner));
                /* This makes going for ships in harbors tough */
                if (!evaded) {
                    /* We already fired flak up above.  Now we intercept again if we haven't already */
@@ -494,10 +494,10 @@ ac_intercept(struct emp_qelem *bomb_list, struct emp_qelem *esc_list,
     }
     if (icount == 0)
        return;
-    PR(plane_owner, "%d %s fighter%s rising to intercept!\n", icount,
-       cname(def_own), icount == 1 ? " is" : "s are");
-    PR(def_own, "%d fighter%s intercepting %s planes!\n", icount,
-       icount == 1 ? " is" : "s are", cname(plane_owner));
+    PR(plane_owner, "%d %s fighter%s rising to intercept!\n",
+       icount, cname(def_own), icount == 1 ? " is" : "s are");
+    PR(def_own, "%d fighter%s intercepting %s planes!\n",
+       icount, icount == 1 ? " is" : "s are", cname(plane_owner));
     ac_combat_headers(plane_owner, def_own);
     ac_airtoair(esc_list, &int_list);
     ac_airtoair(bomb_list, &int_list);
index f85a8e282bbed32b79d7c386618f30070ea67942..96d9f68de2c790e2fe04bf1f3180f1a0ca10b47e 100644 (file)
@@ -515,8 +515,8 @@ att_abort(int combat_mode, struct combat *off, struct combat *def)
     }
 
     if (off && def->sct_dcp->d_mcst <= 0) {
-       pr("You can't %s a %s sector!\n", att_mode[combat_mode],
-          def->sct_dcp->d_name);
+       pr("You can't %s a %s sector!\n",
+          att_mode[combat_mode], def->sct_dcp->d_name);
        return abort_attack();
     }
     if (!off || off->relations_checked)
index e4c73c1ec77fad6eeaca8cf2f60758367ee6ad27..15771b82058aca3b19f7c40d6c2bdba37b19851f 100644 (file)
@@ -75,8 +75,8 @@ check_cost(int looping, int cost, long cash, int *warnedp,
     if (looping && cash > 0 && player->dolcost > cash / 2 && *warnedp < 1) {
        *warnedp = 1;
        pr("WARNING.  You have just spent over half of your money.\n");
-       pr("You started with $%ld and now you only have $%ld left\n", cash,
-          cash - (long)player->dolcost);
+       pr("You started with $%ld and now you only have $%ld left\n",
+          cash, cash - (long)player->dolcost);
     }
     return 0;
 }
index 2f893a1a81fd191d119efab983ae922ed88c6ac6..7a17153446ec9fd3bc9b1f0bffc58c8b40183fa5 100644 (file)
@@ -168,8 +168,7 @@ move_ground(struct sctstr *start, struct sctstr *end,
            break;
        else if (dir == DIR_VIEW) {
            pr("%d%% %s with %d civilians.\n", sect.sct_effic,
-              dchr[sect.sct_type].d_name,
-              sect.sct_item[I_CIVIL]);
+              dchr[sect.sct_type].d_name, sect.sct_item[I_CIVIL]);
            continue;
        }
        /*
index 471f6498b4a1d6d47230378bc4dded044e9bc284..95e8d399c9fcee20045e42b939eea5eb9d34b81f 100644 (file)
@@ -334,8 +334,8 @@ msl_intercept(coord x, coord y, natid bombown, int hardtarget,
        if (!destroyed &&
            msl_hit(pp, hardtarget, EF_PLANE, news_item, news_item,
                    att_name, x, y, bombown)) {
-           mpr(bombown, "%s destroyed by %s %s!\n", att_name,
-               cname(pp->pln_own), def_name);
+           mpr(bombown, "%s destroyed by %s %s!\n",
+               att_name, cname(pp->pln_own), def_name);
            if (sect.sct_own)
                mpr(sect.sct_own, "%s %s intercepted!\n", who, att_name);
            if (sect.sct_own != pp->pln_own)
@@ -360,8 +360,8 @@ msl_intercept(coord x, coord y, natid bombown, int hardtarget,
     if (destroyed)
        return destroyed;
     if (icount) {
-       mpr(bombown, "%s made it through %s defenses!\n", att_name,
-           def_name);
+       mpr(bombown, "%s made it through %s defenses!\n",
+           att_name, def_name);
        if (sect.sct_own)
            mpr(sect.sct_own, "%s made it through %s defenses!\n",
                att_name, def_name);
index 18cf048586847bc67575cd11719cefe546b082c3..ad3eed3c4c176337ac3a9fb1342a8414a1d60ead 100644 (file)
@@ -51,8 +51,8 @@ nuk_postread(int n, void *ptr)
     struct plnstr plane;
 
     if (np->nuk_uid != n) {
-       logerror("nuk_postread: Error - %d != %d, zeroing.\n", np->nuk_uid,
-                n);
+       logerror("nuk_postread: Error - %d != %d, zeroing.\n",
+                np->nuk_uid, n);
        memset(np, 0, sizeof(struct nukstr));
     }
 
index add542da3b543c44f6fc968c32000eafc146efd5..02a7b265df48f0d2a1c978bde53ae990f89f9a93 100644 (file)
@@ -51,8 +51,8 @@ pln_postread(int n, void *ptr)
     struct lndstr theland;
 
     if (pp->pln_uid != n) {
-       logerror("pln_postread: Error - %d != %d, zeroing.\n", pp->pln_uid,
-                n);
+       logerror("pln_postread: Error - %d != %d, zeroing.\n",
+                pp->pln_uid, n);
        memset(pp, 0, sizeof(struct plnstr));
     }
 
index 0735fba58a38a31eab6b2bfa8260c1a15eb7def5..9830db811ed9cce50c370963a8d37539cbb234eb 100644 (file)
@@ -240,15 +240,14 @@ pln_newlanding(struct emp_qelem *list, coord tx, coord ty, int cno)
                pr("\t%s cannot land on ship #%d! %s aborts!\n",
                   prplane(&plp->plane), cno, prplane(&plp->plane));
            else if (!put_plane_on_ship(&plp->plane, &ship))
-               pr("\tNo room on ship #%d! %s aborts!\n", cno,
-                  prplane(&plp->plane));
+               pr("\tNo room on ship #%d! %s aborts!\n",
+                  cno, prplane(&plp->plane));
            else {
                if (plp->plane.pln_own != ship.shp_own) {
 /*                                     plp->plane.pln_own = ship.shp_own;*/
-                   wu(0, ship.shp_own,
-                      "%s %s lands on your %s\n",
-                      cname(player->cnum),
-                      prplane(&plp->plane), prship(&ship));
+                   wu(0, ship.shp_own, "%s %s lands on your %s\n",
+                      cname(player->cnum), prplane(&plp->plane),
+                      prship(&ship));
                }
            }
        } else {
index 4d1ae3d8446912063f1809df6308cd6d2f07e60f..66f91ed1f234b2ea987bae2bd77204a14d6ce987 100644 (file)
@@ -119,8 +119,8 @@ setrel(natid us, natid them, int rel)
 
     if (addendum && us == player->cnum && !update_pending)
        pr("%s\n", addendum);
-    mpr(us, "Diplomatic relations with %s %s to \"%s\".\n", themname,
-       whichway, relates[rel]);
+    mpr(us, "Diplomatic relations with %s %s to \"%s\".\n",
+       themname, whichway, relates[rel]);
     if (!(getrejects(us, themnp) & REJ_TELE))
        mpr(them,
            "Country %s (#%d) has %s their relations with you to \"%s\"!\n",
index ea9ecce93e424e91d9011044548f36effa688030..2902f0f99c3b4209a7a34f1859ff4a35f5127afd 100644 (file)
@@ -312,8 +312,8 @@ retreat_ship1(struct shpstr *sp, char code, int orig)
     }
 
     if (orig) {
-       wu(0, sp->shp_own, "%s %s, and retreated to %s\n", prship(sp),
-          conditions[findcondition(code)].desc[orig],
+       wu(0, sp->shp_own, "%s %s, and retreated to %s\n",
+          prship(sp), conditions[findcondition(code)].desc[orig],
           xyas(sp->shp_x, sp->shp_y, sp->shp_own));
     } else {
        wu(0, sp->shp_own, "%s %s, and ended up at %s\n",
index c9660042ebe36b1db2adf6d5ecc6d2f8a0817267..bd6f036843a287e9f89f255c111117d7089c529e 100644 (file)
@@ -86,8 +86,8 @@ satmap(int x, int y, int eff, int range, int flags, int type)
     }
 
     range = range * (eff / 100.0);
-    pr("%s efficiency %d%%, max range %d\n", xyas(x, y, player->cnum),
-       eff, range);
+    pr("%s efficiency %d%%, max range %d\n",
+       xyas(x, y, player->cnum), eff, range);
     memset(noise, 0, sizeof(noise));
     if (eff < 100) {
        pr("Some noise on the transmission...\n");
@@ -334,8 +334,8 @@ satdisp(struct sctstr *sp, int acc, int showstuff)
            first = 0;
        }
 
-       pr("\t%4d %4d %-16.16s ", land.lnd_own, land.lnd_uid,
-          lchr[(int)land.lnd_type].l_name);
+       pr("\t%4d %4d %-16.16s ",
+          land.lnd_own, land.lnd_uid, lchr[(int)land.lnd_type].l_name);
        prxy("%4d,%-4d ", land.lnd_x, land.lnd_y, player->cnum);
        pr("%3d%%\n", land.lnd_effic);
     }
index a34cb83f8c5d0ae10fc230528a070c18e204846f..317c6a43349fa4c9ff373c12b5e257519478f9e6 100644 (file)
@@ -50,8 +50,8 @@ shp_postread(int n, void *ptr)
     struct shpstr *sp = ptr;
 
     if (sp->shp_uid != n) {
-       logerror("shp_postread: Error - %d != %d, zeroing.\n", sp->shp_uid,
-                n);
+       logerror("shp_postread: Error - %d != %d, zeroing.\n",
+                sp->shp_uid, n);
        memset(sp, 0, sizeof(struct shpstr));
     }
 
index faf677ed46a8cd0387e37ce9e5460e68161081dd..68667c2ba8cf09ea544b6f6dd8dc28e500903bd4 100644 (file)
@@ -518,8 +518,8 @@ show_sect_build(int foo)
     pr("Infrastructure building - adding 1 point of efficiency costs:\n");
     pr("       type          lcms    hcms    mobility    $$$$\n");
     for (x = 0; intrchr[x].in_name; x++) {
-       pr("%-20s %4d    %4d    %8d    %4d\n", intrchr[x].in_name,
-          intrchr[x].in_lcms, intrchr[x].in_hcms,
+       pr("%-20s %4d    %4d    %8d    %4d\n",
+          intrchr[x].in_name, intrchr[x].in_lcms, intrchr[x].in_hcms,
           intrchr[x].in_mcost, intrchr[x].in_dcost);
     }
 }
@@ -569,8 +569,8 @@ show_sect_capab(int foo)
 
        j = dchr[x].d_prd;
 
-       pr("%c %-23s %-7s ", dchr[x].d_mnem, dchr[x].d_name,
-          pchr[j].p_sname);
+       pr("%c %-23s %-7s ",
+          dchr[x].d_mnem, dchr[x].d_name, pchr[j].p_sname);
        (void)CANT_HAPPEN(MAXPRCON > 3); /* output has only three columns */
        for (i = 0; i < 3; i++) {
            if (i < MAXPRCON
index 542fd2716eeb64a054f8c107d0263ac88174e4b1..bfa3f059c8f320cb924287fb225aae593535881c 100644 (file)
@@ -168,8 +168,8 @@ trade_desc(struct trdstr *tp, union trdgenstr *tgp)
        }
        getsect(sp->shp_x, sp->shp_y, &sect);
        if (sect.sct_type != SCT_WATER)
-           pr(" in a %s %s", cname(sect.sct_own),
-              dchr[sect.sct_type].d_name);
+           pr(" in a %s %s",
+              cname(sect.sct_own), dchr[sect.sct_type].d_name);
        else
            pr(" at sea");
        break;
index 13e6ff9ddf6c0f6efd8213da47407ac82e972987..22211700f470b659e715e1510c86330e1250c707 100644 (file)
@@ -61,8 +61,8 @@ scuttle_it(struct shpstr *sp)
 
     sp->shp_autonav &= ~AN_SCUTTLE;
     if (!(sectp = getsectp(sp->shp_x, sp->shp_y))) {
-       wu(0, 0, "bad sector (%d,%d) ship %d\n", sp->shp_x, sp->shp_y,
-          sp->shp_uid);
+       wu(0, 0, "bad sector (%d,%d) ship %d\n",
+          sp->shp_x, sp->shp_y, sp->shp_uid);
        return;
     }
     if (sectp->sct_type != SCT_HARBR || sectp->sct_effic < 2) {
index a40200d3887146af81239c1485514e12781a7583..00f107ec9849308d0d9c8e9a5b1f7368b9722126 100644 (file)
@@ -79,8 +79,8 @@ shutdown_sequence(void *unused)
            } else if (shutdown_pending == 1) {
                pr_wall("%sServer shutting down in 1 minute!\n", header);
            } else if (shutdown_pending <= 5) {
-               pr_wall("%sServer shutting down in %d minutes!\n", header,
-                       shutdown_pending);
+               pr_wall("%sServer shutting down in %d minutes!\n",
+                       header, shutdown_pending);
            } else if (shutdown_pending <= 60
                       && shutdown_pending % 10 == 0) {
                pr_wall("%sThe server will be shutting down in %d minutes!\n",