diff options
author | Vsevolod Kozlov <zaba@thorium.homeunix.org> | 2009-12-27 19:25:32 +0300 |
---|---|---|
committer | Vsevolod Kozlov <zaba@thorium.homeunix.org> | 2009-12-27 19:25:32 +0300 |
commit | dc3e12a4da48363a7cadb77f30b8e784d5f82acf (patch) | |
tree | dadef79197a359e2c24a68a32284b6b6c79eb536 /crawl-ref/source/tilereg.cc | |
parent | 507c3523d54cd2c15185f06f8be1f1ea353497d8 (diff) | |
download | crawl-ref-dc3e12a4da48363a7cadb77f30b8e784d5f82acf.tar.gz crawl-ref-dc3e12a4da48363a7cadb77f30b8e784d5f82acf.zip |
Replace uses of item_cursed with item_def::cursed.
Diffstat (limited to 'crawl-ref/source/tilereg.cc')
-rw-r--r-- | crawl-ref/source/tilereg.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/crawl-ref/source/tilereg.cc b/crawl-ref/source/tilereg.cc index 82ed562c56..4490e3a59a 100644 --- a/crawl-ref/source/tilereg.cc +++ b/crawl-ref/source/tilereg.cc @@ -2484,7 +2484,7 @@ static bool _can_use_item(const item_def &item, bool equipped) && mons_has_blood(item.plus)); } - if (equipped && item_cursed(item)) + if (equipped && item.cursed()) { // Misc. items/rods can always be evoked, cursed or not. if (item.base_type == OBJ_MISCELLANY || item_is_rod(item)) @@ -2770,7 +2770,7 @@ bool InventoryRegion::update_tip_text(std::string& tip) tip += "\n[R-Click] Info"; // Has to be non-equipped or non-cursed to drop. if (!equipped || !_is_true_equipped_item(you.inv[idx]) - || !item_cursed(you.inv[idx])) + || !you.inv[idx].cursed()) { tip += "\n[Shift-L-Click] Drop (d)"; } |