make the Z_Malloc zone checking depend on developer

This commit is contained in:
Bill Currie 2001-08-28 06:15:58 +00:00
parent d1a7649ba0
commit ff2b08b2fd

View file

@ -40,6 +40,7 @@
#include "QF/cmd.h"
#include "QF/console.h"
#include "QF/cvar.h"
#include "QF/qargs.h"
#include "QF/sys.h"
#include "QF/zone.h"
@ -144,6 +145,7 @@ void *Z_Malloc (memzone_t *zone, int size)
{
void *buf;
if (!developer || developer->int_val)
Z_CheckHeap (zone); // DEBUG
buf = Z_TagMalloc (zone, size, 1);
if (!buf)