Use relations_with() for US==THEM || getrel(getnatp(US), THEM)
Replacing getrel(getnatp(US), THEM) by relations_with(US, THEM) makes a difference only when US equals THEM. Replace patterns like "us == them || getrel(getnatp(us), them)..." by "relations_with(us, them)...".
This commit is contained in:
parent
ef7b9cedc3
commit
8e75b22e0d
Notes:
Markus Armbruster
2013-01-26 12:01:24 +01:00
Author: Markus Armbruster <armbru@pond.sub.org> Same guy, wrong e-mail address.
13 changed files with 25 additions and 46 deletions
|
@ -74,8 +74,7 @@ drop(void)
|
|||
return RET_SYN;
|
||||
getsect(tx, ty, &target);
|
||||
|
||||
if (target.sct_own == player->cnum
|
||||
|| getrel(getnatp(target.sct_own), player->cnum) == ALLIED) {
|
||||
if (relations_with(target.sct_own, player->cnum) == ALLIED) {
|
||||
/* own or allied sector: cargo drop */
|
||||
if (ip->i_uid == I_CIVIL && target.sct_own != target.sct_oldown) {
|
||||
pr("Can't drop civilians into occupied sectors.\n");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue