From 06e0e595e1c0c0b19145798624ab1dcb018438e7 Mon Sep 17 00:00:00 2001 From: dshaligram Date: Sat, 31 Mar 2007 10:45:08 +0000 Subject: Fixed newgame ?: crash. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/branches/stone_soup-0.2@1142 c06c8d41-db1a-0410-9941-cceddc491573 --- crawl-ref/source/command.cc | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/crawl-ref/source/command.cc b/crawl-ref/source/command.cc index 520cfa13c2..7ef2c502dd 100644 --- a/crawl-ref/source/command.cc +++ b/crawl-ref/source/command.cc @@ -693,8 +693,13 @@ static int keyhelp_keyfilter(int ch) switch (ch) { case ':': - display_notes(); - return -1; + // If the game has begun, show notes. + if (crawl_state.need_save) + { + display_notes(); + return -1; + } + // fall through default: return ch; } -- cgit v1.2.3-54-g00ecf