summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authordolorous <dolorous@c06c8d41-db1a-0410-9941-cceddc491573>2008-06-29 05:37:40 +0000
committerdolorous <dolorous@c06c8d41-db1a-0410-9941-cceddc491573>2008-06-29 05:37:40 +0000
commitfb9acb2668f2bfa66cc53e718a612252feca4d6b (patch)
tree766b2770585f5b0b54e9ccc1cfabb8c8ce915a00
parent2d8ce0a2ef76abb530cdfd8e4c126c7249e6b19d (diff)
downloadcrawl-ref-fb9acb2668f2bfa66cc53e718a612252feca4d6b.tar.gz
crawl-ref-fb9acb2668f2bfa66cc53e718a612252feca4d6b.zip
Make tso_unchivalric_attack_safe_monster() take a monsters* parameter
instead of an actor* parameter. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@6208 c06c8d41-db1a-0410-9941-cceddc491573
-rw-r--r--crawl-ref/source/religion.cc4
-rw-r--r--crawl-ref/source/religion.h2
2 files changed, 3 insertions, 3 deletions
diff --git a/crawl-ref/source/religion.cc b/crawl-ref/source/religion.cc
index 36bfd110ec..cc198b1ec7 100644
--- a/crawl-ref/source/religion.cc
+++ b/crawl-ref/source/religion.cc
@@ -5902,8 +5902,8 @@ int piety_breakpoint(int i)
// Returns true if the Shining One doesn't mind your using unchivalric
// attacks on this creature.
-bool tso_unchivalric_attack_safe_monster(const actor *act)
+bool tso_unchivalric_attack_safe_monster(const monsters *mon)
{
- const mon_holy_type holiness = act->holiness();
+ const mon_holy_type holiness = mon->holiness();
return (holiness != MH_NATURAL && holiness != MH_HOLY);
}
diff --git a/crawl-ref/source/religion.h b/crawl-ref/source/religion.h
index 332a0fa703..044130133b 100644
--- a/crawl-ref/source/religion.h
+++ b/crawl-ref/source/religion.h
@@ -108,7 +108,7 @@ bool is_evil_item(const item_def& item);
bool god_dislikes_item_handling(const item_def &item);
bool ely_destroy_weapons();
bool trog_burn_books();
-bool tso_unchivalric_attack_safe_monster(const actor *act);
+bool tso_unchivalric_attack_safe_monster(const monsters *mon);
void mons_make_god_gift(monsters *mon, god_type god = you.religion);
bool mons_is_god_gift(const monsters *mon, god_type god = you.religion);