Fix autonav to use correct coordinate system

When autonav reported to a ship owner that it can't load or unload
foreign civilians, it used the sector owner's coordinate system.  This
disclosed the sector owner's origin.  Abusable.
This commit is contained in:
Markus Armbruster 2010-05-16 13:52:14 +02:00
parent 890886bfa2
commit 9ad8618ba3

View file

@ -68,7 +68,7 @@ load_it(struct shpstr *sp, struct sctstr *psect, int i)
if (psect->sct_oldown != shipown && comm == I_CIVIL) {
wu(0, shipown,
"Ship #%d - unable to load disloyal civilians at %s.",
sp->shp_uid, xyas(psect->sct_x, psect->sct_y, psect->sct_own));
sp->shp_uid, xyas(psect->sct_x, psect->sct_y, shipown));
return 0;
}
if (comm == I_CIVIL || comm == I_MILIT)
@ -158,8 +158,7 @@ unload_it(struct shpstr *sp)
if (sectp->sct_oldown != shipown && comm == I_CIVIL) {
wu(0, sp->shp_own,
"Ship #%d - unable to unload civilians into a disloyal sector at %s.",
sp->shp_uid, xyas(sectp->sct_x, sectp->sct_y,
sectp->sct_own));
sp->shp_uid, xyas(sectp->sct_x, sectp->sct_y, sp->shp_own));
continue;
}
if (comm == I_CIVIL)