(sail_ship): Only print the reached message when

the fleet actually moves.
This commit is contained in:
Ron Koenderink 2006-01-18 01:37:47 +00:00
parent 2088eab228
commit e7ed28aada

View 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. */