summaryrefslogtreecommitdiff
path: root/src/gods.cc
diff options
context:
space:
mode:
authorBardur Arantsson <bardur@scientician.net>2015-03-22 13:05:39 +0100
committerBardur Arantsson <bardur@scientician.net>2015-03-22 13:05:39 +0100
commitb11197ae79d621c50d89f6a092a3f95f954712f0 (patch)
tree44b20f31bc6b4f946d2f4fb6c19afdce558a34f2 /src/gods.cc
parentfb2a78c52a32026a57fd9cc7763a783456199dd7 (diff)
Inline various GOD macros
Diffstat (limited to 'src/gods.cc')
-rw-r--r--src/gods.cc7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/gods.cc b/src/gods.cc
index be877905..abb10c13 100644
--- a/src/gods.cc
+++ b/src/gods.cc
@@ -93,7 +93,7 @@ void follow_god(int god, bool_ silent)
p_ptr->pgod = god;
/* Melkor offer Udun magic */
- GOD(GOD_MELKOR)
+ if (p_ptr->pgod == GOD_MELKOR)
{
s_info[SKILL_UDUN].hidden = FALSE;
if (!silent) msg_print("You feel the dark powers of Melkor in you. You can now use the Udun skill.");
@@ -203,3 +203,8 @@ int find_god(cptr name)
}
return -1;
}
+
+bool praying_to(int god)
+{
+ return (p_ptr->pgod == god) && p_ptr->praying;
+}