diff options
author | Nicholas Feinberg <pleasingfung@gmail.com> | 2014-08-02 11:02:51 -0700 |
---|---|---|
committer | Nicholas Feinberg <pleasingfung@gmail.com> | 2014-08-02 11:10:11 -0700 |
commit | 0f053f10eb5bf6e8df296044933b8f82496ce8d3 (patch) | |
tree | 2ee23a7eea5d4f23736aa40a7e1318c5ac13ca63 /crawl-ref/source/command.cc | |
parent | 8064468542592958c6ace5dc27aa0fd88cce04a9 (diff) | |
download | crawl-ref-0f053f10eb5bf6e8df296044933b8f82496ce8d3.tar.gz crawl-ref-0f053f10eb5bf6e8df296044933b8f82496ce8d3.zip |
Don't display disabled gods in the ?/ list
Diffstat (limited to 'crawl-ref/source/command.cc')
-rw-r--r-- | crawl-ref/source/command.cc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/crawl-ref/source/command.cc b/crawl-ref/source/command.cc index 590b17f9c6..82f8485588 100644 --- a/crawl-ref/source/command.cc +++ b/crawl-ref/source/command.cc @@ -869,7 +869,8 @@ static vector<string> _get_god_keys() for (int i = GOD_NO_GOD + 1; i < NUM_GODS; i++) { god_type which_god = static_cast<god_type>(i); - names.push_back(god_name(which_god)); + if (!is_disabled_god(which_god)) + names.push_back(god_name(which_god)); } return names; |