summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/items.cc
diff options
context:
space:
mode:
authorVsevolod Kozlov <zaba@thorium.homeunix.org>2009-12-27 19:25:32 +0300
committerVsevolod Kozlov <zaba@thorium.homeunix.org>2009-12-27 19:25:32 +0300
commitdc3e12a4da48363a7cadb77f30b8e784d5f82acf (patch)
treedadef79197a359e2c24a68a32284b6b6c79eb536 /crawl-ref/source/items.cc
parent507c3523d54cd2c15185f06f8be1f1ea353497d8 (diff)
downloadcrawl-ref-dc3e12a4da48363a7cadb77f30b8e784d5f82acf.tar.gz
crawl-ref-dc3e12a4da48363a7cadb77f30b8e784d5f82acf.zip
Replace uses of item_cursed with item_def::cursed.
Diffstat (limited to 'crawl-ref/source/items.cc')
-rw-r--r--crawl-ref/source/items.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/crawl-ref/source/items.cc b/crawl-ref/source/items.cc
index fa2b57fdea..7543da8ea5 100644
--- a/crawl-ref/source/items.cc
+++ b/crawl-ref/source/items.cc
@@ -1921,7 +1921,7 @@ bool drop_item( int item_dropped, int quant_drop, bool try_offer )
if (item_dropped == you.equip[EQ_WEAPON]
&& you.inv[item_dropped].base_type == OBJ_WEAPONS
- && item_cursed( you.inv[item_dropped] ))
+ && you.inv[item_dropped] .cursed())
{
mpr("That object is stuck to you!");
return (false);
@@ -2821,7 +2821,7 @@ int item_def::book_number() const
bool item_def::cursed() const
{
- return (item_cursed(*this));
+ return (flags & ISFLAG_CURSED);
}
bool item_def::launched_by(const item_def &launcher) const