DEBUGFILES

Fetching a value of DEBUGFILES from the environment to enable
debugpline() messages was intended to operate in wizard mode only
but that wasn't enforced.
This commit is contained in:
PatR
2024-06-04 14:53:17 -07:00
parent cf2a97dea4
commit 8652262105
2 changed files with 6 additions and 0 deletions

View File

@@ -4519,6 +4519,11 @@ debugcore(const char *filename, boolean wildcards)
{
const char *debugfiles, *p;
/* debugpline() messages might disclose information that the player
doesn't normally get to see, so only display them in wizard mode */
if (!wizard)
return FALSE;
if (!filename || !*filename)
return FALSE; /* sanity precaution */