checking.
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@8267 c06c8d41-db1a-0410-9941-cceddc491573
3EREXXQMWTOWPI5ZV4UABEIR4RTGPNM7V2O6CG2EOFPHA5GEB2WAC bool team_a_won = false;bool was_tied = false;if (faction_a.active_members > 0 || faction_a.suicide_attack)
// We bother with all this to properly deal ties, and with ball// lightning or giant spores winning the fight via suicide.// The sanity checking is probably just paranoia.bool was_tied = false;if (!faction_a.won && !faction_b.won)
team_a_wins++;team_a_won = true;
if (faction_a.active_members > 0){mpr("Tie declared, but faction_a won.", MSGCH_ERROR);more();team_a_wins++;faction_a.won = true;}else if (faction_b.active_members > 0){mpr("Tie declared, but faction_b won.", MSGCH_ERROR);more();faction_b.won = true;}else{ties++;was_tied = true;}
ties++;was_tied = true;
faction_a.won = false;faction_b.won = false;mpr("*BOTH* factions won?!", MSGCH_ERROR);if (faction_a.active_members > 0){mpr("Faction_a real winner.", MSGCH_ERROR);team_a_wins++;faction_a.won = true;}else if (faction_b.active_members > 0){mpr("Faction_b real winner.", MSGCH_ERROR);faction_b.won = true;}else{mpr("Both sides dead.", MSGCH_ERROR);ties++;was_tied = true;}more();