diff options
author | Jesse Luehrs <doy@tozt.net> | 2014-08-05 00:38:47 -0400 |
---|---|---|
committer | Jesse Luehrs <doy@tozt.net> | 2014-08-05 00:38:47 -0400 |
commit | 63d8d37e0bcefc4a0ba234f126301f3d9550e0a7 (patch) | |
tree | 1c2b845ffaff33cce4a6c5f91897a7edcedb5cdf /crawl-ref/source/output.cc | |
parent | 3d2dfd808e07f59e689325b41f05dbd175e0fae4 (diff) | |
download | crawl-ref-63d8d37e0bcefc4a0ba234f126301f3d9550e0a7.tar.gz crawl-ref-63d8d37e0bcefc4a0ba234f126301f3d9550e0a7.zip |
make sure we clear out the whole ac and sh stat area on change
previously we were only clearing out a single character after the ac,
which is normally okay since it's not usually the case that the value
jumps by multiple orders of magnitude, but things like curing extreme
corrosion in wizmode could leave garbage behind
Diffstat (limited to 'crawl-ref/source/output.cc')
-rw-r--r-- | crawl-ref/source/output.cc | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/crawl-ref/source/output.cc b/crawl-ref/source/output.cc index d5e8185969..1663dba69c 100644 --- a/crawl-ref/source/output.cc +++ b/crawl-ref/source/output.cc @@ -818,7 +818,7 @@ static void _print_stats_ac(int x, int y) if (you.wizard) ac += make_stringf("(%d%%) ", you.gdr_perc()); #endif - CPRINTF("%s", ac.c_str()); + CPRINTF("%-12s", ac.c_str()); // SH: (two lines lower) CGOTOXY(x+4, y+2, GOTO_STAT); @@ -828,7 +828,8 @@ static void _print_stats_ac(int x, int y) textcolor(LIGHTBLUE); else textcolor(HUD_VALUE_COLOUR); - CPRINTF("%2d ", player_displayed_shield_class()); + string sh = make_stringf("%2d ", player_displayed_shield_class()); + CPRINTF("%-12s", sh.c_str()); } static void _print_stats_ev(int x, int y) |