]> git.pond.sub.org Git - empserver/blobdiff - src/lib/player/player.c
Fix trailing whitespace
[empserver] / src / lib / player / player.c
index e5facc28d6cba62efdd95b4d7facc6a6b7395df9..14a7aaddac8e267840b9017d5afcb60ceb55b3c6 100644 (file)
@@ -26,7 +26,7 @@
  *  ---
  *
  *  player.c: Main command loop for a player
- * 
+ *
  *  Known contributors to this file:
  *     Steve McClure, 2000
  *     Markus Armbruster, 2004-2008
@@ -165,17 +165,17 @@ status(void)
        pr("That just cost you $%.2f\n", player->dolcost);
     else if (player->dolcost < -100.0)
        pr("You just made $%.2f\n", -player->dolcost);
-    if (player->dolcost != 0.0) {\r
-       /*\r
-        * Hackish work around for a race condition in the nightly\r
-        * build's regression tests: sometimes the update starts right\r
-        * after the force command yields, sometimes a bit later.  If\r
-        * it is late, we use one random number here, for the bye,\r
-        * and throwing off the random sequence.\r
-        */\r
-       natp->nat_money -= roundavg(player->dolcost);\r
-       player->dolcost = 0.0;\r
-    }\r
+    if (player->dolcost != 0.0) {
+       /*
+        * Hackish work around for a race condition in the nightly
+        * build's regression tests: sometimes the update starts right
+        * after the force command yields, sometimes a bit later.  If
+        * it is late, we use one random number here, for the bye,
+        * and throwing off the random sequence.
+        */
+       natp->nat_money -= roundavg(player->dolcost);
+       player->dolcost = 0.0;
+    }
 
     old_nstat = player->nstat;
     player_set_nstat(player, natp);
@@ -299,7 +299,7 @@ show_motd(void)
     char buf[MAXTELSIZE + 1];  /* UTF-8 */
 
     if ((motd_fp = fopen(motdfil, "rb")) == NULL) {
-       if (errno == ENOENT)
+       if (errno == ENOENT)
            return RET_OK;
        else {
            pr ("Could not open motd.\n");