diff options
author | haranp <haranp@c06c8d41-db1a-0410-9941-cceddc491573> | 2007-04-07 15:42:57 +0000 |
---|---|---|
committer | haranp <haranp@c06c8d41-db1a-0410-9941-cceddc491573> | 2007-04-07 15:42:57 +0000 |
commit | 95367a34cdd01b1e436f31a169626f68175330c4 (patch) | |
tree | 7e18dc6081f3386f6cb08ed3905f319948cd023b /crawl-ref/source/mon-pick.cc | |
parent | 5d21ab53cd4c5c73b5aa0c69376619a4992c9414 (diff) | |
download | crawl-ref-95367a34cdd01b1e436f31a169626f68175330c4.tar.gz crawl-ref-95367a34cdd01b1e436f31a169626f68175330c4.zip |
More refactoring.
Removed the limit on how many monsters can be generated as I don't think
it was ever being reached.
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@1257 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/mon-pick.cc')
-rw-r--r-- | crawl-ref/source/mon-pick.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/crawl-ref/source/mon-pick.cc b/crawl-ref/source/mon-pick.cc index 1f7f9bbdf0..b06023d686 100644 --- a/crawl-ref/source/mon-pick.cc +++ b/crawl-ref/source/mon-pick.cc @@ -29,7 +29,7 @@ int mons_level(int mcls) else if (you.level_type == LEVEL_PANDEMONIUM) monster_level = ((mons_pan(mcls)) ? 52 : 0); else - monster_level=branches[(int)you.where_are_you].mons_level_function(mcls); + monster_level = your_branch().mons_level_function(mcls); return monster_level; } @@ -42,7 +42,7 @@ int mons_rarity(int mcls) if (you.level_type == LEVEL_ABYSS) return mons_rare_abyss(mcls); else - return branches[(int)you.where_are_you].mons_rarity_function(mcls); + return your_branch().mons_rarity_function(mcls); } bool mons_abyss(int mcls) |