From 71adb1db298adf054f6ae453a5b40807fbf021d3 Mon Sep 17 00:00:00 2001 From: Robert Vollmert Date: Mon, 16 Nov 2009 17:29:52 +0100 Subject: Wrap view flashing in flash_view. This also removes env.show updates when flashing. --- crawl-ref/source/godabil.cc | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'crawl-ref/source/godabil.cc') diff --git a/crawl-ref/source/godabil.cc b/crawl-ref/source/godabil.cc index d7c635b2c6..508f6b3e64 100644 --- a/crawl-ref/source/godabil.cc +++ b/crawl-ref/source/godabil.cc @@ -1337,8 +1337,7 @@ void cheibriados_time_step(int pow) // pow is the number of turns to skip coord_def old_pos = you.pos(); mpr("You step out of the flow of time."); - you.flash_colour = LIGHTBLUE; - viewwindow(false); + flash_view(LIGHTBLUE); you.moveto(coord_def(0, 0)); you.duration[DUR_TIME_STEP] = pow; @@ -1358,9 +1357,9 @@ void cheibriados_time_step(int pow) // pow is the number of turns to skip delay(1000); #endif - you.flash_colour = 0; you.moveto(old_pos); you.duration[DUR_TIME_STEP] = 0; - viewwindow(false); + + flash_view(0); mpr("You return to the normal time flow."); } -- cgit v1.2.3-54-g00ecf