summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/player.cc
diff options
context:
space:
mode:
authorDavid Lawrence Ramsey <dolorous@users.sourceforge.net>2009-11-05 18:35:11 -0600
committerDavid Lawrence Ramsey <dolorous@users.sourceforge.net>2009-11-05 18:35:11 -0600
commit1587373bced888a35c938e32bdaf1a3de7e48bae (patch)
tree09e263442accb66395b97b1f1eebeda8f55e77f5 /crawl-ref/source/player.cc
parent8784c9f9077a2b725920e37c908b07a122891694 (diff)
downloadcrawl-ref-1587373bced888a35c938e32bdaf1a3de7e48bae.tar.gz
crawl-ref-1587373bced888a35c938e32bdaf1a3de7e48bae.zip
Simplify player::res_holy_energy() a bit.
Diffstat (limited to 'crawl-ref/source/player.cc')
-rw-r--r--crawl-ref/source/player.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/crawl-ref/source/player.cc b/crawl-ref/source/player.cc
index 7814a4da7c..591a6d68fa 100644
--- a/crawl-ref/source/player.cc
+++ b/crawl-ref/source/player.cc
@@ -6490,13 +6490,13 @@ int player::res_sticky_flame() const
int player::res_holy_energy(const actor *attacker) const
{
- if (is_evil_god(this->religion))
+ if (is_evil())
return (-1);
if (is_unholy())
return (-2);
- if (is_good_god(this->religion))
+ if (is_good_god(religion))
return (1);
return (0);