summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/output.cc
diff options
context:
space:
mode:
authordolorous <dolorous@c06c8d41-db1a-0410-9941-cceddc491573>2008-04-21 01:16:07 +0000
committerdolorous <dolorous@c06c8d41-db1a-0410-9941-cceddc491573>2008-04-21 01:16:07 +0000
commite89ecc38f9adc6ef254aad4697a83927696b4dd1 (patch)
treee11d3151a52ad0ee1485b9a8699bb132e2b54380 /crawl-ref/source/output.cc
parent98d71af18e34930c1e4e8ac4a42a0b76edc21415 (diff)
downloadcrawl-ref-e89ecc38f9adc6ef254aad4697a83927696b4dd1.tar.gz
crawl-ref-e89ecc38f9adc6ef254aad4697a83927696b4dd1.zip
Don't display "-" if the player has no shield equipped. Instead,
display the shield class number unconditionally, so that if you only have a magical shield, you can see the shield class properly. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@4430 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/output.cc')
-rw-r--r--crawl-ref/source/output.cc11
1 files changed, 2 insertions, 9 deletions
diff --git a/crawl-ref/source/output.cc b/crawl-ref/source/output.cc
index ffb09dde4b..76bd97ee61 100644
--- a/crawl-ref/source/output.cc
+++ b/crawl-ref/source/output.cc
@@ -449,15 +449,8 @@ static void _print_stats_ac(int x, int y)
{
textcolor( LIGHTBLUE ); // no end of effect warning
}
- if (you.equip[EQ_SHIELD] == -1)
- {
- textcolor( DARKGREY );
- cprintf( " - " );
- }
- else
- {
- cprintf( "%2d ", player_shield_class() );
- }
+
+ cprintf( "%2d ", player_shield_class() );
textcolor( LIGHTGREY );
}