From ddef47a325eac7cb2b3e7886924ad8df969fb297 Mon Sep 17 00:00:00 2001 From: dolorous Date: Mon, 30 Jun 2008 16:50:56 +0000 Subject: When displaying player skills, clear to the ends of both lines, so that e.g. switching from Lugonu to Xom doesn't leave "the Foo of Xomonu" on the screen. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@6254 c06c8d41-db1a-0410-9941-cceddc491573 --- crawl-ref/source/output.cc | 2 ++ 1 file changed, 2 insertions(+) (limited to 'crawl-ref/source/output.cc') diff --git a/crawl-ref/source/output.cc b/crawl-ref/source/output.cc index d382cbd2f8..0e88083723 100644 --- a/crawl-ref/source/output.cc +++ b/crawl-ref/source/output.cc @@ -956,6 +956,7 @@ void redraw_skill(const std::string &your_name, const std::string &class_name) cgotoxy(1 + crawl_view.hudsz.x-9, 1, GOTO_STAT); cprintf(" *WIZARD*"); } + clear_to_end_of_line(); // Line 2: // Level N Minotaur [of God] @@ -966,6 +967,7 @@ void redraw_skill(const std::string &your_name, const std::string &class_name) species_name( you.species, you.experience_level ).c_str()); if (you.religion != GOD_NO_GOD) cprintf(" of %s", god_name(you.religion).c_str()); + clear_to_end_of_line(); textcolor( LIGHTGREY ); } -- cgit v1.2.3-54-g00ecf