summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/ghost.cc
diff options
context:
space:
mode:
authordolorous <dolorous@c06c8d41-db1a-0410-9941-cceddc491573>2009-03-26 01:25:20 +0000
committerdolorous <dolorous@c06c8d41-db1a-0410-9941-cceddc491573>2009-03-26 01:25:20 +0000
commit00ee106a30bfd18c793a6a21dda7ccc90e57c5a7 (patch)
treebbec4eb733c0985671def5e73cd52d871b4ffe6a /crawl-ref/source/ghost.cc
parentbdb33fda79c45d3eb10d552b10d0e7b09c134771 (diff)
downloadcrawl-ref-00ee106a30bfd18c793a6a21dda7ccc90e57c5a7.tar.gz
crawl-ref-00ee106a30bfd18c793a6a21dda7ccc90e57c5a7.zip
Simplify.
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@9551 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/ghost.cc')
-rw-r--r--crawl-ref/source/ghost.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/crawl-ref/source/ghost.cc b/crawl-ref/source/ghost.cc
index 5322114bc9..4682d7bd20 100644
--- a/crawl-ref/source/ghost.cc
+++ b/crawl-ref/source/ghost.cc
@@ -350,7 +350,8 @@ void ghost_demon::init_player_ghost()
job = you.char_class;
// Ghosts can't worship good gods.
- religion = is_good_god(you.religion) ? GOD_NO_GOD : you.religion;
+ if (!is_good_god(you.religion))
+ religion = you.religion;
best_skill = ::best_skill(SK_FIGHTING, (NUM_SKILLS - 1), 99);
best_skill_level = you.skills[best_skill];