summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthew Cline <zelgadis@sourceforge.net>2009-11-11 16:04:03 -0800
committerMatthew Cline <zelgadis@sourceforge.net>2009-11-11 16:04:03 -0800
commitd6856bb9294025f036d95dac1cc0e02dfd77c7d1 (patch)
tree4e35d7b48a5968134cdfc6a4b515a40536aae4cb
parent293fabd5733796e81a7e6c64c5953f2b6e901f58 (diff)
downloadcrawl-ref-d6856bb9294025f036d95dac1cc0e02dfd77c7d1.tar.gz
crawl-ref-d6856bb9294025f036d95dac1cc0e02dfd77c7d1.zip
ng-init.cc: use temple_god_list()
-rw-r--r--crawl-ref/source/ng-init.cc23
1 files changed, 2 insertions, 21 deletions
diff --git a/crawl-ref/source/ng-init.cc b/crawl-ref/source/ng-init.cc
index ecc505cf05..c77ee15ba6 100644
--- a/crawl-ref/source/ng-init.cc
+++ b/crawl-ref/source/ng-init.cc
@@ -14,6 +14,7 @@
#include "itemname.h"
#include "player.h"
#include "random.h"
+#include "religion.h"
#include "store.h"
static unsigned char _random_potion_description()
@@ -72,27 +73,7 @@ void initialise_branch_depths()
// overflow temples, and on what level the overflow temples are.
void initialise_temples()
{
- std::vector<god_type> god_list;
-
- for (int i = 0; i < NUM_GODS; i++)
- {
- god_type god = (god_type) i;
-
- // These never appear in any temples.
- switch(god)
- {
- case GOD_NO_GOD:
- case GOD_LUGONU:
- case GOD_BEOGH:
- case GOD_JIYVA:
- continue;
-
- default:
- break;
- }
-
- god_list.push_back(god);
- }
+ std::vector<god_type> god_list = temple_god_list();
std::random_shuffle(god_list.begin(), god_list.end());