- added multiple message levels for 'developer' CVAR so that the important stuff won't get drowned in pointless notification spam that's of no use to anyone.
- made 'developer' CVAR persist across launches and added some menu entries for it. - added checks for 'developer' to ACS's CheckInventory function.
This commit is contained in:
parent
716fbec8ee
commit
e04055dbb2
38 changed files with 157 additions and 139 deletions
|
|
@ -612,12 +612,12 @@ int Printf (const char *format, ...)
|
|||
return count;
|
||||
}
|
||||
|
||||
int DPrintf (const char *format, ...)
|
||||
int DPrintf (int level, const char *format, ...)
|
||||
{
|
||||
va_list argptr;
|
||||
int count;
|
||||
|
||||
if (developer)
|
||||
if (developer >= level)
|
||||
{
|
||||
va_start (argptr, format);
|
||||
count = VPrintf (PRINT_HIGH, format, argptr);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue