From fb479a5a369d4ada263f277930741cff715593d4 Mon Sep 17 00:00:00 2001 From: Robert Vollmert Date: Wed, 25 Nov 2009 00:04:25 +0100 Subject: Fix non-wizard compilation. --- crawl-ref/source/message.cc | 16 +++++++++++++--- 1 file changed, 13 insertions(+), 3 deletions(-) (limited to 'crawl-ref/source/message.cc') diff --git a/crawl-ref/source/message.cc b/crawl-ref/source/message.cc index 44e7dbb7b1..91ae833d51 100644 --- a/crawl-ref/source/message.cc +++ b/crawl-ref/source/message.cc @@ -21,7 +21,6 @@ #include "delay.h" #include "initfile.h" #include "libutil.h" -#include "luaterp.h" #include "macro.h" #include "message.h" #include "mon-stuff.h" @@ -41,6 +40,10 @@ #include "viewgeom.h" #include "menu.h" +#ifdef WIZARD +#include "luaterp.h" +#endif + class message_item { public: msg_channel_type channel; // message channel @@ -1055,12 +1058,19 @@ void more(bool user_forced) return; } - if (crawl_state.is_replaying_keys() || autoclear_more - || luaterp_running()) + if (crawl_state.is_replaying_keys() || autoclear_more) + { + mesclr(); + return; + } + +#ifdef WIZARD + if(luaterp_running()) { mesclr(); return; } +#endif if (Options.show_more_prompt && !suppress_messages) { -- cgit v1.2.3-54-g00ecf