each others presence, even if they aren't in LOS of each other.
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@8078 c06c8d41-db1a-0410-9941-cceddc491573
ONOH6OOENDDCK5H25C6RLLVAOCO4T6PG2GTURIDXFK7FFXGIYASQC }}void alert_faction(bool friendly){int alerter;for (int i = 0; i < MAX_MONSTERS; i++){const monsters *mon = &menv[i];if (!mon->alive())continue;if (mons_friendly(mon) != friendly){alerter = i;break;}}// Move player aside so that behaviour_event() default src_pos// isn't the same as the player's position, in order to avoid an// assertion.you.position = coord_def(-1, -1);for (int i = 0; i < MAX_MONSTERS; i++){monsters *mon = &menv[i];if (!mon->alive())continue;if (mons_friendly(mon) == friendly)behaviour_event(mon, ME_ALERT, alerter);