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
This commit is contained in:
hendricks266 2015-03-30 05:56:20 +00:00
parent 3a081603ae
commit f68829c08a

View file

@ -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)