Fix tend to refuse tending civilians to foreign ships

Broken when Chainsaw 2 added tending to allies.
This commit is contained in:
Markus Armbruster 2012-06-11 20:18:08 +02:00
parent e16fc41b2e
commit 5424142f62

View file

@ -140,6 +140,8 @@ tend(void)
if (tender.shp_x != target.shp_x || if (tender.shp_x != target.shp_x ||
tender.shp_y != target.shp_y) tender.shp_y != target.shp_y)
continue; continue;
if (ip->i_uid == I_CIVIL && tender.shp_own != target.shp_own)
continue;
ontarget = target.shp_item[ip->i_uid]; ontarget = target.shp_item[ip->i_uid];
vbase = &mchr[(int)target.shp_type]; vbase = &mchr[(int)target.shp_type];
maxtarget = vbase->m_item[ip->i_uid]; maxtarget = vbase->m_item[ip->i_uid];