From e3d4c1c4df56b4ea1b1a4b5011aba0341d40b507 Mon Sep 17 00:00:00 2001 From: haranp Date: Wed, 18 Jun 2008 21:05:17 +0000 Subject: 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 --- crawl-ref/source/stuff.cc | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'crawl-ref/source') 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; -- cgit v1.2.3-54-g00ecf