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
|
@ -750,8 +750,7 @@ shp_nav_one_sector(struct emp_qelem *list, int dir, natid actor,
|
|||
navigate = shp_check_nav(§, &mlp->unit.ship);
|
||||
if (navigate != CN_NAVIGABLE ||
|
||||
(sect.sct_own
|
||||
&& sect.sct_own != actor
|
||||
&& getrel(getnatp(sect.sct_own), actor) < FRIENDLY)) {
|
||||
&& relations_with(sect.sct_own, actor) < FRIENDLY)) {
|
||||
if (dchr[sect.sct_type].d_nav == NAV_CANAL &&
|
||||
!(((struct mchrstr *)mlp->chrp)->m_flags & M_CANAL) &&
|
||||
navigate == CN_LANDLOCKED)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue