diff options
author | zelgadis <zelgadis@c06c8d41-db1a-0410-9941-cceddc491573> | 2009-01-27 14:53:26 +0000 |
---|---|---|
committer | zelgadis <zelgadis@c06c8d41-db1a-0410-9941-cceddc491573> | 2009-01-27 14:53:26 +0000 |
commit | f598d81681a1445daac1507ee4bf304f9a7f5d38 (patch) | |
tree | 2a0cabbe6d518751d43f46dab875b847dcd9a3da /crawl-ref/source/arena.cc | |
parent | 1e5eb7f2b36599d95385c79f569e01f94ddc2b4a (diff) | |
download | crawl-ref-f598d81681a1445daac1507ee4bf304f9a7f5d38.tar.gz crawl-ref-f598d81681a1445daac1507ee4bf304f9a7f5d38.zip |
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
Diffstat (limited to 'crawl-ref/source/arena.cc')
-rw-r--r-- | crawl-ref/source/arena.cc | 6 |
1 files changed, 6 insertions, 0 deletions
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) { |