diff options
author | dshaligram <dshaligram@c06c8d41-db1a-0410-9941-cceddc491573> | 2008-07-28 20:53:27 +0000 |
---|---|---|
committer | dshaligram <dshaligram@c06c8d41-db1a-0410-9941-cceddc491573> | 2008-07-28 20:53:27 +0000 |
commit | f3c162efdac44483e3e9155aa6d2496bac79aa30 (patch) | |
tree | 49ebda10df5605f2b2c385e32e55479be7581be6 /crawl-ref/source/output.cc | |
parent | a7260191bfe7a52d60a139bae417404d298bb3a5 (diff) | |
download | crawl-ref-f3c162efdac44483e3e9155aa6d2496bac79aa30.tar.gz crawl-ref-f3c162efdac44483e3e9155aa6d2496bac79aa30.zip |
Fix HUD updates overwriting dgl message indicator, changed indicator from (msg) to (Hit _).
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@6707 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/output.cc')
-rw-r--r-- | crawl-ref/source/output.cc | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/crawl-ref/source/output.cc b/crawl-ref/source/output.cc index fdcc9380bb..d6263ac742 100644 --- a/crawl-ref/source/output.cc +++ b/crawl-ref/source/output.cc @@ -203,13 +203,17 @@ static int _dur_colour( int running_out_color, bool running_out ) #ifdef DGL_SIMPLE_MESSAGING void update_message_status() { + static const char *msg = "(Hit _)"; + static const int len = strlen(msg); + static const std::string spc(len, ' '); + textcolor(LIGHTBLUE); - cgotoxy(36, 1, GOTO_STAT); + cgotoxy(crawl_view.hudsz.x - len + 1, 1, GOTO_STAT); if (SysEnv.have_messages) - cprintf("(msg)"); + cprintf(msg); else - cprintf(" "); + cprintf(spc.c_str()); textcolor(LIGHTGREY); } #endif @@ -954,7 +958,9 @@ 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(); +#ifdef DGL_SIMPLE_MESSAGING + update_message_status(); +#endif // Line 2: // Level N Minotaur [of God] |