mirror of
https://github.com/ZDoom/gzdoom-gles.git
synced 2024-11-24 13:11:33 +00:00
- changed secret message handling so that the debug output of the sector number is only printed to the console but not the centered message.
This commit is contained in:
parent
72bba914ce
commit
5cc75af295
1 changed files with 3 additions and 5 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue