From f68829c08a63e05d541f1a0e8bc101ea7e4bd504 Mon Sep 17 00:00:00 2001
From: hendricks266 <hendricks266@1a8010ca-5511-0410-912e-c29ae57300e0>
Date: Mon, 30 Mar 2015 05:56:20 +0000
Subject: [PATCH] Don't print quotes when not in-game.

This is required after a change in the cheat menu commit that allows the cheat quotes to trigger from the in-game menu. However, a side-effect was that pressing F12 in the main menu would cause "SCREEN SAVED" to display indefinitely.

git-svn-id: https://svn.eduke32.com/eduke32@5114 1a8010ca-5511-0410-912e-c29ae57300e0
---
 polymer/eduke32/source/game.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/polymer/eduke32/source/game.c b/polymer/eduke32/source/game.c
index e26658f88..1ac689865 100644
--- a/polymer/eduke32/source/game.c
+++ b/polymer/eduke32/source/game.c
@@ -2755,7 +2755,7 @@ void P_DoQuote(int32_t q, DukePlayer_t *p)
 {
     int32_t cq = 0;
 
-    if (ud.fta_on == 0 || q < 0)
+    if (ud.fta_on == 0 || q < 0 || !(p->gm & MODE_GAME))
         return;
 
     if (q & MAXQUOTES)