cvar_t noexit = {CVAR_NOTIFY, "noexit","0"};
cvar_t developer = {0, "developer","0"};
+cvar_t developer_entityparsing = {0, "developer_entityparsing", "0"};
cvar_t skill = {0, "skill","1"};
cvar_t deathmatch = {0, "deathmatch","0"};
Cvar_RegisterVariable (&developer);
if (forcedeveloper) // make it real now that the cvar is registered
Cvar_SetValue("developer", 1);
+ Cvar_RegisterVariable (&developer_entityparsing);
Cvar_RegisterVariable (&deathmatch);
Cvar_RegisterVariable (&coop);
Used for initial level load and for savegames.
====================
*/
+extern cvar_t developer_entityparsing;
const char *PRVM_ED_ParseEdict (const char *data, prvm_edict_t *ent)
{
ddef_t *key;
// parse key
if (!COM_ParseToken(&data, false))
PRVM_ERROR ("PRVM_ED_ParseEdict: EOF without closing brace");
+ if (developer_entityparsing.integer)
+ Con_Printf("Key: \"%s\"", com_token);
if (com_token[0] == '}')
break;
// parse value
if (!COM_ParseToken(&data, false))
PRVM_ERROR ("PRVM_ED_ParseEdict: EOF without closing brace");
+ if (developer_entityparsing.integer)
+ Con_Printf(" \"%s\"\n", com_token);
if (com_token[0] == '}')
PRVM_ERROR ("PRVM_ED_ParseEdict: closing brace without data");