From bedf3ae4150ddd9d4242e52a21ea8eec67919ba2 Mon Sep 17 00:00:00 2001 From: Markus Armbruster Date: Sun, 16 May 2010 10:40:00 +0200 Subject: [PATCH] Fix nation command to use correct coordinate system It reported capital location in the nation's coordinate system instead of the player's. Fortunately, they're the same in normal usage. They can differ only when a deity requests a nation report for another country. --- src/lib/commands/nati.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/lib/commands/nati.c b/src/lib/commands/nati.c index 12a81e16..58e03276 100644 --- a/src/lib/commands/nati.c +++ b/src/lib/commands/nati.c @@ -68,14 +68,15 @@ nati(void) getsect(natp->nat_xcap, natp->nat_ycap, §); if (influx(natp)) pr("No capital (was at %s).\n", - xyas(sect.sct_x, sect.sct_y, cnum)); + xyas(sect.sct_x, sect.sct_y, player->cnum)); else { civ = sect.sct_item[I_CIVIL]; mil = sect.sct_item[I_MILIT]; pr("%d%% eff %s at %s has %d civilian%s & %d military\n", sect.sct_effic, sect.sct_type == SCT_CAPIT ? "capital" : "mountain capital", - xyas(sect.sct_x, sect.sct_y, cnum), civ, splur(civ), mil); + xyas(sect.sct_x, sect.sct_y, player->cnum), + civ, splur(civ), mil); } } pr(" The treasury has $%.2f", (double)natp->nat_money);