summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/stuff.cc
diff options
context:
space:
mode:
authorharanp <haranp@c06c8d41-db1a-0410-9941-cceddc491573>2008-06-18 21:05:17 +0000
committerharanp <haranp@c06c8d41-db1a-0410-9941-cceddc491573>2008-06-18 21:05:17 +0000
commite3d4c1c4df56b4ea1b1a4b5011aba0341d40b507 (patch)
tree61c9ab86769f0c7773d09365b611305e877700ac /crawl-ref/source/stuff.cc
parentac6b06b5832a65ad18ca880e4521f155dda87d6e (diff)
downloadcrawl-ref-e3d4c1c4df56b4ea1b1a4b5011aba0341d40b507.tar.gz
crawl-ref-e3d4c1c4df56b4ea1b1a4b5011aba0341d40b507.zip
Make redraw_screen() a bit smarter if the game isn't initialised yet.
Fixes 1996179. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@5961 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/stuff.cc')
-rw-r--r--crawl-ref/source/stuff.cc7
1 files changed, 7 insertions, 0 deletions
diff --git a/crawl-ref/source/stuff.cc b/crawl-ref/source/stuff.cc
index 3b92f5ef06..1a0b272474 100644
--- a/crawl-ref/source/stuff.cc
+++ b/crawl-ref/source/stuff.cc
@@ -722,6 +722,13 @@ void end(int exit_code, bool print_error, const char *format, ...)
void redraw_screen(void)
{
+ if (!crawl_state.need_save)
+ {
+ // if the game hasn't started, don't do much
+ clrscr();
+ return;
+ }
+
draw_border();
you.redraw_hit_points = true;