]> git.pond.sub.org Git - empserver/commitdiff
(sail_ship): Only print the reached message when
authorRon Koenderink <rkoenderink@yahoo.ca>
Wed, 18 Jan 2006 01:37:47 +0000 (01:37 +0000)
committerRon Koenderink <rkoenderink@yahoo.ca>
Wed, 18 Jan 2006 01:37:47 +0000 (01:37 +0000)
the fleet actually moves.

src/lib/update/sail.c

index 0ad89d6557cef7be61c47e14783ca90d71de1c85..89115902a8134f9d58990022e1fbe0f716ca4749 100644 (file)
@@ -316,9 +316,9 @@ sail_ship(natid cn)
 
     /* see what the fleets fall out into */
     for (fltp = head; fltp; fltp = fltp->next) {
-       sail_nav_fleet(fltp);
-       wu(0, fltp->own, "Your fleet lead by ship #%d has reached %s.\n",
-          fltp->leader, xyas(fltp->x, fltp->y, fltp->own));
+       if (sail_nav_fleet(fltp))
+           wu(0, fltp->own, "Your fleet lead by ship #%d has reached %s.\n",
+              fltp->leader, xyas(fltp->x, fltp->y, fltp->own));
     }
 
     /* Free up the memory, 'cause I want to. */