(sorde): Output format fixes from Ron Koenderink.

This commit is contained in:
Markus Armbruster 2003-11-09 13:33:17 +00:00
parent c2c16e1a04
commit e07fb30663

View file

@ -467,7 +467,7 @@ sorde(void)
if (player->god) if (player->god)
pr("own "); pr("own ");
pr("shp# ship type x,y "); pr("shp# ship type x,y ");
pr("start end "); pr("start end ");
pr("len eta\n"); pr("len eta\n");
} }
nships++; nships++;
@ -485,15 +485,15 @@ sorde(void)
/* Destination 2 */ /* Destination 2 */
if ((ship.shp_destx[1] != ship.shp_destx[0]) if ((ship.shp_destx[1] != ship.shp_destx[0])
|| (ship.shp_desty[1] != ship.shp_desty[0])) { || (ship.shp_desty[1] != ship.shp_desty[0])) {
prxy(" %2d,%-2d", ship.shp_destx[0], prxy(" %3d,%-3d", ship.shp_destx[0],
ship.shp_desty[0], player->cnum); ship.shp_desty[0], player->cnum);
} else } else
pr(" "); pr(" ");
if (ship.shp_autonav & AN_STANDBY) if (ship.shp_autonav & AN_STANDBY)
pr(" suspended"); pr(" suspended");
else if (ship.shp_autonav & AN_LOADING) else if (ship.shp_autonav & AN_LOADING)
pr(" loading"); pr(" loading");
else { else {
/* ETA calculation */ /* ETA calculation */
@ -501,11 +501,11 @@ sorde(void)
ship.shp_y, ship.shp_destx[0], ship.shp_y, ship.shp_destx[0],
ship.shp_desty[0], ship.shp_own); ship.shp_desty[0], ship.shp_own);
if (!c || !*c) if (!c || !*c)
pr("no route possible"); pr(" no route possible");
else if (*c == 'h') else if (*c == 'h')
pr("has arrived"); pr(" has arrived");
else if (*c == '?') else if (*c == '?')
pr("route too long"); pr(" route too long");
else { else {
/* distance to destination */ /* distance to destination */
eta_calc(&ship, c, &len, &updates); eta_calc(&ship, c, &len, &updates);