diff options
author | j-p-e-g <j-p-e-g@c06c8d41-db1a-0410-9941-cceddc491573> | 2008-01-20 19:56:38 +0000 |
---|---|---|
committer | j-p-e-g <j-p-e-g@c06c8d41-db1a-0410-9941-cceddc491573> | 2008-01-20 19:56:38 +0000 |
commit | 47dd86930dcbbe92a989a3f049887b8ae47412d5 (patch) | |
tree | 12abba2e3bd5f8c43e50bc469d192eebeabb0934 /crawl-ref/source/travel.cc | |
parent | 58a4fbec35500d744cb966d43885734b4da5f7d9 (diff) | |
download | crawl-ref-47dd86930dcbbe92a989a3f049887b8ae47412d5.tar.gz crawl-ref-47dd86930dcbbe92a989a3f049887b8ae47412d5.zip |
Tiles:
Fix the slooooow update of hp/mp during resting because of the coloured bars.
Now the bars are redrawn only once resting is over or if it's interrupted.
(Hp and mp still grow steadily.)
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@3311 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/travel.cc')
-rw-r--r-- | crawl-ref/source/travel.cc | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/crawl-ref/source/travel.cc b/crawl-ref/source/travel.cc index 3796137fe1..fc612ac569 100644 --- a/crawl-ref/source/travel.cc +++ b/crawl-ref/source/travel.cc @@ -27,6 +27,9 @@ #include "misc.h" #include "mon-util.h" #include "monstuff.h" +#ifdef USE_TILE + #include "output.h" +#endif #include "overmap.h" #include "place.h" #include "player.h" @@ -815,6 +818,13 @@ void start_running(void) void stop_running(void) { you.running.stop(); +#ifdef USE_TILE + // redraw colour bars now as that's blocked during runmode + if (you.hp != you.hp_max) + draw_hp_bar(you.hp, you.hp_max); + if (you.magic_points != you.max_magic_points) + draw_mp_bar(you.magic_points, you.max_magic_points); +#endif } static bool is_valid_explore_target(int x, int y) |