From 5cc75af295a5996257d4fa52072783811a8f8ca4 Mon Sep 17 00:00:00 2001 From: Christoph Oelckers Date: Tue, 12 Nov 2019 23:39:05 +0100 Subject: [PATCH] - changed secret message handling so that the debug output of the sector number is only printed to the console but not the centered message. --- src/playsim/p_spec.cpp | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/src/playsim/p_spec.cpp b/src/playsim/p_spec.cpp index a8f62151b..c1b99b4df 100644 --- a/src/playsim/p_spec.cpp +++ b/src/playsim/p_spec.cpp @@ -592,12 +592,10 @@ void P_GiveSecret(FLevelLocals *Level, AActor *actor, bool printmessage, bool pl { if (printmessage) { - if (!showsecretsector || sectornum < 0) C_MidPrint(nullptr, GStrings["SECRETMESSAGE"]); - else + C_MidPrint(nullptr, GStrings["SECRETMESSAGE"]); + if (showsecretsector && sectornum >= 0) { - FString s = GStrings["SECRETMESSAGE"]; - s.AppendFormat(" (Sector %d)", sectornum); - C_MidPrint(nullptr, s); + Printf(PRINT_NONOTIFY, "Secret found in sector %d\n", sectornum); } } if (playsound) S_Sound (CHAN_AUTO | CHAN_UI, "misc/secret", 1, ATTN_NORM);