From e7ed28aada8021ec8e26ff15f1e1a5a15f4917ee Mon Sep 17 00:00:00 2001 From: Ron Koenderink Date: Wed, 18 Jan 2006 01:37:47 +0000 Subject: [PATCH] (sail_ship): Only print the reached message when the fleet actually moves. --- src/lib/update/sail.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/lib/update/sail.c b/src/lib/update/sail.c index 0ad89d65..89115902 100644 --- a/src/lib/update/sail.c +++ b/src/lib/update/sail.c @@ -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. */