diff options
author | haranp <haranp@c06c8d41-db1a-0410-9941-cceddc491573> | 2008-07-02 19:51:50 +0000 |
---|---|---|
committer | haranp <haranp@c06c8d41-db1a-0410-9941-cceddc491573> | 2008-07-02 19:51:50 +0000 |
commit | 4293d91bfd7e4b10b7cdee76dc7d5da7e5e3e001 (patch) | |
tree | 071c35be0b6d5541418b190765e47591ca0229b5 /crawl-ref/source/dungeon.cc | |
parent | 8030e3981a5ff0333ae659cbd08763c09ffdede0 (diff) | |
download | crawl-ref-4293d91bfd7e4b10b7cdee76dc7d5da7e5e3e001.tar.gz crawl-ref-4293d91bfd7e4b10b7cdee76dc7d5da7e5e3e001.zip |
Many code cleanups, mostly involving using stack_iterator and
radius_iterator instead of the previous setup.
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@6347 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/dungeon.cc')
-rw-r--r-- | crawl-ref/source/dungeon.cc | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/crawl-ref/source/dungeon.cc b/crawl-ref/source/dungeon.cc index 2a6a86b555..7a7d29f4f1 100644 --- a/crawl-ref/source/dungeon.cc +++ b/crawl-ref/source/dungeon.cc @@ -748,9 +748,7 @@ static void _reset_level() for (int i = 0; i < MAX_MONSTERS; i++) menv[i].reset(); - for (int i = 0; i < 20; i++) - env.mons_alloc[i] = MONS_PROGRAM_BUG; - + env.mons_alloc.init(MONS_PROGRAM_BUG); mgrd.init(NON_MONSTER); igrd.init(NON_ITEM); |