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/acr.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/acr.cc')
-rw-r--r-- | crawl-ref/source/acr.cc | 15 |
1 files changed, 11 insertions, 4 deletions
diff --git a/crawl-ref/source/acr.cc b/crawl-ref/source/acr.cc index 4a49cbcbf5..cf9bf7e992 100644 --- a/crawl-ref/source/acr.cc +++ b/crawl-ref/source/acr.cc @@ -1374,6 +1374,14 @@ static bool _cmd_is_repeatable(command_type cmd, bool is_again = false) // Used to determine whether to apply the berserk penalty at end of round. bool apply_berserk_penalty = false; +static void _center_cursor() +{ +#ifndef USE_TILE + const coord_def cwhere = grid2view(you.pos()); + cgotoxy(cwhere.x, cwhere.y); +#endif +} + // // This function handles the player's input. It's called from main(), // from inside an endless loop. @@ -1477,10 +1485,7 @@ static void _input() handle_delay(); - const coord_def cwhere = grid2view(you.pos()); -#ifndef USE_TILE - cgotoxy(cwhere.x, cwhere.y); -#endif + _center_cursor(); if (you_are_delayed()) { @@ -3348,6 +3353,8 @@ static void _check_messages() { _announce_messages(); update_message_status(); + // Recenter the cursor on the player. + _center_cursor(); } } #endif |