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.
This commit is contained in:
parent
4773519c3c
commit
bedf3ae415
1 changed files with 3 additions and 2 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue