Fix tend to refuse tending civilians to foreign ships
Broken when Chainsaw 2 added tending to allies.
This commit is contained in:
parent
e16fc41b2e
commit
5424142f62
1 changed files with 2 additions and 0 deletions
|
@ -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];
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue