diff options
author | Robert Vollmert <rvollmert@gmx.net> | 2009-11-16 17:29:52 +0100 |
---|---|---|
committer | Robert Vollmert <rvollmert@gmx.net> | 2009-11-16 17:29:52 +0100 |
commit | 71adb1db298adf054f6ae453a5b40807fbf021d3 (patch) | |
tree | 7c5c057b70e2fc23e98f925a7c7d8d13d72a79a4 /crawl-ref/source/spells2.cc | |
parent | 6acd640e5aa287d45368f50bf5776e72b1fe4159 (diff) | |
download | crawl-ref-71adb1db298adf054f6ae453a5b40807fbf021d3.tar.gz crawl-ref-71adb1db298adf054f6ae453a5b40807fbf021d3.zip |
Wrap view flashing in flash_view.
This also removes env.show updates when flashing.
Diffstat (limited to 'crawl-ref/source/spells2.cc')
-rw-r--r-- | crawl-ref/source/spells2.cc | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/crawl-ref/source/spells2.cc b/crawl-ref/source/spells2.cc index fca185bf16..06311a9c0e 100644 --- a/crawl-ref/source/spells2.cc +++ b/crawl-ref/source/spells2.cc @@ -641,8 +641,7 @@ void cast_toxic_radiance() { mpr("You radiate a sickly green light!"); - you.flash_colour = GREEN; - viewwindow(false); + flash_view(GREEN); more(); mesclr(); @@ -707,8 +706,7 @@ void cast_refrigeration(int pow) { mpr("The heat is drained from your surroundings."); - you.flash_colour = LIGHTCYAN; - viewwindow(false); + flash_view(LIGHTCYAN); more(); mesclr(); @@ -787,8 +785,7 @@ void drain_life(int pow) // this function with spell level power. ASSERT(pow <= 27); - you.flash_colour = DARKGREY; - viewwindow(false); + flash_view(DARKGREY); more(); mesclr(); |