(deliver): Do not deliver friendly civilians into occupied sectors.
This commit is contained in:
parent
6e3442b68e
commit
bf83673bb5
1 changed files with 12 additions and 5 deletions
|
@ -80,11 +80,18 @@ deliver(struct sctstr *from, struct ichrstr *ip, int dir,
|
||||||
dp = &dchr[from->sct_type];
|
dp = &dchr[from->sct_type];
|
||||||
vtype = ip->i_vtype;
|
vtype = ip->i_vtype;
|
||||||
mobility = from->sct_mobil / 2;
|
mobility = from->sct_mobil / 2;
|
||||||
if (vtype == I_CIVIL && from->sct_own != from->sct_oldown) {
|
if (vtype == I_CIVIL) {
|
||||||
wu(0, from->sct_own,
|
if (from->sct_own != from->sct_oldown) {
|
||||||
"The conquered populace in %s refuses to relocate!\n",
|
wu(0, from->sct_own,
|
||||||
ownxy(from));
|
"The conquered populace in %s refuses to relocate!\n",
|
||||||
return 0;
|
ownxy(from));
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
if (to->sct_own != to->sct_oldown) {
|
||||||
|
wu(0, from->sct_own,
|
||||||
|
"Citizens in %s refuse to relocate!\n", ownxy(from));
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
/*
|
/*
|
||||||
* disallow delivery into prohibited sectors.
|
* disallow delivery into prohibited sectors.
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue