(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];
|
||||
vtype = ip->i_vtype;
|
||||
mobility = from->sct_mobil / 2;
|
||||
if (vtype == I_CIVIL && from->sct_own != from->sct_oldown) {
|
||||
wu(0, from->sct_own,
|
||||
"The conquered populace in %s refuses to relocate!\n",
|
||||
ownxy(from));
|
||||
return 0;
|
||||
if (vtype == I_CIVIL) {
|
||||
if (from->sct_own != from->sct_oldown) {
|
||||
wu(0, from->sct_own,
|
||||
"The conquered populace in %s refuses to relocate!\n",
|
||||
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.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue