From 9b138df6437d6a10af1b0f7a7f6d77acedab369c Mon Sep 17 00:00:00 2001 From: Fabian Greffrath Date: Mon, 31 Jan 2022 15:33:22 +0100 Subject: [PATCH] only enable one per-tic reporting cheat at once --- Source/m_cheat.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/Source/m_cheat.c b/Source/m_cheat.c index bc524e1c..7e9d016a 100644 --- a/Source/m_cheat.c +++ b/Source/m_cheat.c @@ -535,8 +535,9 @@ char buf[3]; // killough 2/7/98: simplified using dprintf and made output more user-friendly static void cheat_mypos() { + plyr->powers[pw_renderstats] = 0; if (!(plyr->powers[pw_mapcoords] ^= 1)) - dprintf("%s", ""); + plyr->message = ""; } void cheat_mypos_print() @@ -751,8 +752,9 @@ static void cheat_nuke() static void cheat_rate() { + plyr->powers[pw_mapcoords] = 0; if (!(plyr->powers[pw_renderstats] ^= 1)) - dprintf("%s", ""); + plyr->message = ""; } //-----------------------------------------------------------------------------