From f598d81681a1445daac1507ee4bf304f9a7f5d38 Mon Sep 17 00:00:00 2001 From: zelgadis Date: Tue, 27 Jan 2009 14:53:26 +0000 Subject: If a faction has a new member enter the arena after the faction is defeated but before the other faction is declared the winner then forget the win and continue the fighting. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@8820 c06c8d41-db1a-0410-9941-cceddc491573 --- crawl-ref/source/arena.cc | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'crawl-ref/source/arena.cc') diff --git a/crawl-ref/source/arena.cc b/crawl-ref/source/arena.cc index eddd2775e4..fd8c92c76a 100644 --- a/crawl-ref/source/arena.cc +++ b/crawl-ref/source/arena.cc @@ -1036,9 +1036,15 @@ bool arena_veto_place_monster(const mgen_data &mg, bool first_band_member, void arena_placed_monster(monsters *monster) { if (monster->attitude == ATT_FRIENDLY) + { arena::faction_a.active_members++; + arena::faction_b.won = false; + } else if (monster->attitude == ATT_HOSTILE) + { arena::faction_b.active_members++; + arena::faction_a.won = false; + } if (monster->type == MONS_TEST_SPAWNER) { -- cgit v1.2.3-54-g00ecf