From 47dd86930dcbbe92a989a3f049887b8ae47412d5 Mon Sep 17 00:00:00 2001 From: j-p-e-g Date: Sun, 20 Jan 2008 19:56:38 +0000 Subject: 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 --- crawl-ref/source/travel.cc | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'crawl-ref/source/travel.cc') 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) -- cgit v1.2.3-54-g00ecf