diff options
author | Vsevolod Kozlov <zaba@thorium.homeunix.org> | 2009-11-06 15:54:52 +0300 |
---|---|---|
committer | Jude Brown <bookofjude@users.sourceforge.net> | 2009-11-06 23:22:04 +1000 |
commit | 8aaaca3d1c38a41d88b6dddf55fa48fd9aecb539 (patch) | |
tree | 7e3d75c7a1f32cc41facc17d36986df022a5870a /crawl-ref/source/ouch.cc | |
parent | cddc002566e2f235a3785e12d534ebc0202bb53e (diff) | |
download | crawl-ref-8aaaca3d1c38a41d88b6dddf55fa48fd9aecb539.tar.gz crawl-ref-8aaaca3d1c38a41d88b6dddf55fa48fd9aecb539.zip |
Rename is_valid_item to item_def::is_valid.
Signed-off-by: Jude Brown <bookofjude@users.sourceforge.net>
Diffstat (limited to 'crawl-ref/source/ouch.cc')
-rw-r--r-- | crawl-ref/source/ouch.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/crawl-ref/source/ouch.cc b/crawl-ref/source/ouch.cc index c76fd18148..70b6e2a9d6 100644 --- a/crawl-ref/source/ouch.cc +++ b/crawl-ref/source/ouch.cc @@ -443,7 +443,7 @@ static bool _expose_invent_to_element(beam_type flavour, int strength) // factor of junk (which might be more desirable for game play). for (int i = 0; i < ENDOFPACK; ++i) { - if (!is_valid_item(you.inv[i])) + if (!you.inv[i].is_valid()) continue; if (you.inv[i].base_type == target_class @@ -540,7 +540,7 @@ bool expose_items_to_element(beam_type flavour, const coord_def& where, for (stack_iterator si(where); si; ++si) { - if (!is_valid_item(*si)) + if (!si->is_valid()) continue; if (si->base_type == target_class |