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/spells4.cc | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'crawl-ref/source/spells4.cc') diff --git a/crawl-ref/source/spells4.cc b/crawl-ref/source/spells4.cc index 5b965b3d72..f3086187c3 100644 --- a/crawl-ref/source/spells4.cc +++ b/crawl-ref/source/spells4.cc @@ -590,8 +590,7 @@ static int _ignite_poison_monsters(coord_def where, int pow, int, actor *) void cast_ignite_poison(int pow) { - you.flash_colour = RED; - viewwindow(false); + flash_view(RED); // Poison branding becomes fire branding. if (you.weapon() @@ -739,8 +738,7 @@ void cast_ignite_poison(int pow) #ifndef USE_TILES delay(100); // show a brief flash #endif - you.flash_colour = 0; - viewwindow(false); + flash_view(0); } void cast_silence(int pow) -- cgit v1.2.3-54-g00ecf