From 111787503763e9d3eeb4eef2248926bf4a4eeb98 Mon Sep 17 00:00:00 2001 From: haranp Date: Thu, 24 Jul 2008 10:38:05 +0000 Subject: More cleanups. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@6669 c06c8d41-db1a-0410-9941-cceddc491573 --- crawl-ref/source/item_use.cc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'crawl-ref/source/item_use.cc') 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); -- cgit v1.2.3-54-g00ecf