summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/item_use.cc
diff options
context:
space:
mode:
authorharanp <haranp@c06c8d41-db1a-0410-9941-cceddc491573>2008-07-24 10:38:05 +0000
committerharanp <haranp@c06c8d41-db1a-0410-9941-cceddc491573>2008-07-24 10:38:05 +0000
commit111787503763e9d3eeb4eef2248926bf4a4eeb98 (patch)
tree8af6fcd44ef05ff7cb092dfe3084c13f58e3ba74 /crawl-ref/source/item_use.cc
parenta7ba97bc95fa25180bd402a52943f223da2bf04a (diff)
downloadcrawl-ref-111787503763e9d3eeb4eef2248926bf4a4eeb98.tar.gz
crawl-ref-111787503763e9d3eeb4eef2248926bf4a4eeb98.zip
More cleanups.
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@6669 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/item_use.cc')
-rw-r--r--crawl-ref/source/item_use.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/crawl-ref/source/item_use.cc b/crawl-ref/source/item_use.cc
index 9e7c67f718..6d541d6951 100644
--- a/crawl-ref/source/item_use.cc
+++ b/crawl-ref/source/item_use.cc
@@ -3880,7 +3880,7 @@ static bool affix_weapon_enchantment()
// Can't fix pain brand (balance)...you just get tormented.
mprf("%s shrieks out in agony!", itname.c_str());
- torment_monsters(you.x_pos, you.y_pos, 0, TORMENT_GENERIC);
+ torment_monsters(you.pos(), 0, TORMENT_GENERIC);
success = false;
// Is only naughty if you know you're doing it.
@@ -4397,7 +4397,7 @@ void read_scroll( int slot )
break;
case SCR_TORMENT:
- torment( TORMENT_SCROLL, you.x_pos, you.y_pos );
+ torment( TORMENT_SCROLL, you.pos() );
// Is only naughty if you know you're doing it.
did_god_conduct(DID_UNHOLY, 10, item_type_known(scroll));
@@ -4573,7 +4573,7 @@ void read_scroll( int slot )
you.piety / 2;
}
- if (!holy_word(pow, HOLY_WORD_SCROLL, you.x_pos, you.y_pos,
+ if (!holy_word(pow, HOLY_WORD_SCROLL, you.pos(),
!item_type_known(scroll)))
{
canned_msg(MSG_NOTHING_HAPPENS);