From 00ee106a30bfd18c793a6a21dda7ccc90e57c5a7 Mon Sep 17 00:00:00 2001 From: dolorous Date: Thu, 26 Mar 2009 01:25:20 +0000 Subject: Simplify. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@9551 c06c8d41-db1a-0410-9941-cceddc491573 --- crawl-ref/source/ghost.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'crawl-ref/source/ghost.cc') 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]; -- cgit v1.2.3-54-g00ecf