diff options
author | Steve Melenchuk <smelenchuk@gmail.com> | 2014-04-17 22:55:22 -0600 |
---|---|---|
committer | Steve Melenchuk <smelenchuk@gmail.com> | 2014-04-17 22:58:05 -0600 |
commit | c8a6302a1e4252c17c1e7af48b16f78bdd95a8ea (patch) | |
tree | 54ad4818bdda40e3358d0d26b4bd3aaa2bcf69de /crawl-ref/source/mon-place.cc | |
parent | aeee4a37346185bbfb3ab22d5a69c2d3199b916d (diff) | |
download | crawl-ref-c8a6302a1e4252c17c1e7af48b16f78bdd95a8ea.tar.gz crawl-ref-c8a6302a1e4252c17c1e7af48b16f78bdd95a8ea.zip |
Don't allow raskshasa's BAND_RANDOM_SINGLE in monsterless branches.
Like wizlabs, where it was causing crashes.
Diffstat (limited to 'crawl-ref/source/mon-place.cc')
-rw-r--r-- | crawl-ref/source/mon-place.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/crawl-ref/source/mon-place.cc b/crawl-ref/source/mon-place.cc index 1d43ee0abd..ca351aca70 100644 --- a/crawl-ref/source/mon-place.cc +++ b/crawl-ref/source/mon-place.cc @@ -2801,7 +2801,7 @@ static band_type _choose_band(monster_type mon_type, int &band_size, break; case MONS_RAKSHASA: - if (coinflip()) + if (branch_has_monsters(you.where_are_you) && coinflip()) { band = BAND_RANDOM_SINGLE; band_size = 1; |