summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/dungeon.h
diff options
context:
space:
mode:
authorMatthew Cline <zelgadis@sourceforge.net>2009-11-11 15:56:04 -0800
committerMatthew Cline <zelgadis@sourceforge.net>2009-11-11 15:56:04 -0800
commit293fabd5733796e81a7e6c64c5953f2b6e901f58 (patch)
treec9239e9e0e40175fb3ab43a4468e1381a0f8e6bf /crawl-ref/source/dungeon.h
parentbe10fc3e15688ced9a7e3ce841ede8d68fd85eaa (diff)
downloadcrawl-ref-293fabd5733796e81a7e6c64c5953f2b6e901f58.tar.gz
crawl-ref-293fabd5733796e81a7e6c64c5953f2b6e901f58.zip
dungeon: Randomized altars for mini-temples
Randomize the altars placed in mini-temples, rather than always going in enum order. If multiple mini-temples are placed on the same level with a combined altar count larger than the number of gods which can appear in temples, then a single mini-temple might contain duplicate altars.q Eliminates altar_count from vault_placement struct.
Diffstat (limited to 'crawl-ref/source/dungeon.h')
-rw-r--r--crawl-ref/source/dungeon.h5
1 files changed, 2 insertions, 3 deletions
diff --git a/crawl-ref/source/dungeon.h b/crawl-ref/source/dungeon.h
index eb4fae762e..c9c236cb9b 100644
--- a/crawl-ref/source/dungeon.h
+++ b/crawl-ref/source/dungeon.h
@@ -146,7 +146,7 @@ public:
map_def map;
std::vector<coord_def> exits;
- int level_number, altar_count, num_runes;
+ int level_number, num_runes;
// If we're not placing runes, this is the substitute feature.
int rune_subst;
@@ -154,8 +154,7 @@ public:
public:
vault_placement()
: pos(-1, -1), size(0, 0), orient(0), map(),
- exits(), level_number(0), altar_count(0), num_runes(0),
- rune_subst(-1)
+ exits(), level_number(0), num_runes(0), rune_subst(-1)
{
}