diff options
author | Vsevolod Kozlov <zaba@thorium.homeunix.org> | 2009-11-06 20:06:38 +1000 |
---|---|---|
committer | Jude Brown <bookofjude@users.sourceforge.net> | 2009-11-06 20:06:38 +1000 |
commit | 95fae39c5ba6c345d458ee828ae732faba7d8a82 (patch) | |
tree | 98b6f60d1f4d0061c2cebf99b10b24fc396f4340 /crawl-ref/source/player.cc | |
parent | 37dddc69c063b655d028bdb33e5ab831b4af8a55 (diff) | |
download | crawl-ref-95fae39c5ba6c345d458ee828ae732faba7d8a82.tar.gz crawl-ref-95fae39c5ba6c345d458ee828ae732faba7d8a82.zip |
Convert calls you.duration to relevant player:: check.
Signed-off-by: Jude Brown <bookofjude@users.sourceforge.net>
Diffstat (limited to 'crawl-ref/source/player.cc')
-rw-r--r-- | crawl-ref/source/player.cc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/crawl-ref/source/player.cc b/crawl-ref/source/player.cc index 0c7fe03b39..e178cc0523 100644 --- a/crawl-ref/source/player.cc +++ b/crawl-ref/source/player.cc @@ -3832,11 +3832,11 @@ void display_char_status() mpr("You are mesmerised."); // How exactly did you get to show the status? - if (you.duration[DUR_PARALYSIS]) + if (you.paralysed()) mpr("You are paralysed."); - if (you.duration[DUR_PETRIFIED]) + if (you.petrified()) mpr("You are petrified."); - if (you.duration[DUR_SLEEP]) + if (you.asleep()) mpr("You are asleep."); if (you.duration[DUR_EXHAUSTED]) |