- Format CON crash output in VM_ScriptInfo() much more nicely.

- Execute VM_ScriptInfo() when DNDEBUG is used.

git-svn-id: https://svn.eduke32.com/eduke32@2229 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
hendricks266 2012-01-01 04:14:06 +00:00
parent e9aec2a65b
commit 13c399f612
2 changed files with 11 additions and 2 deletions

View file

@ -3689,6 +3689,9 @@ static void G_DumpDebugInfo(void)
int32_t i,j,x;
// FILE * fp=fopen("condebug.log","w");
VM_ScriptInfo();
OSD_Printf("\n");
OSD_Printf("Current gamevar values:\n");
for (i=0; i<MAX_WEAPONS; i++)
{

View file

@ -69,12 +69,18 @@ void VM_ScriptInfo(void)
if (insptr)
{
initprintf("\n");
for (p=insptr-20; p<insptr+20; p++)
{
initprintf("%5d: %3d: ",(int32_t)(p - script),(int32_t)(p - insptr));
if (*p>>12&&(*p&0xFFF)<CON_END)
initprintf("\n%5d: %5d %s ",(int32_t)(p-script),(int32_t)(*p>>12),keyw[*p&0xFFF]);
initprintf("%5d %s",(int32_t)(*p>>12),keyw[*p&0xFFF]);
else
initprintf(" %d",(int32_t)*p);
initprintf("%d",(int32_t)*p);
initprintf("\n");
}
initprintf("\n");