forked from Mirrors/openclonk
Debugrecs: Store text ID of created objects
parent
af1146c126
commit
76aacc9564
|
@ -994,8 +994,8 @@ C4Object* C4Game::NewObject( C4PropList *pDef, C4Object *pCreator,
|
|||
if (!pDef) return NULL;
|
||||
#ifdef DEBUGREC
|
||||
C4RCCreateObj rc;
|
||||
C4Def *def = pDef->GetDef();
|
||||
rc.id=def ? def->id.GetHandle() : 0;
|
||||
ZeroMemory(&rc, sizeof(C4RCCreateObj));
|
||||
strcpy(rc.id, pDef->GetName());
|
||||
rc.oei=C4PropListNumbered::GetEnumerationIndex()+1;
|
||||
rc.x=iX; rc.y=iY; rc.ownr=iOwner;
|
||||
AddDbgRec(RCT_CrObj, &rc, sizeof(rc));
|
||||
|
|
|
@ -155,7 +155,7 @@ struct C4RCRandom
|
|||
struct C4RCCreateObj
|
||||
{
|
||||
int oei;
|
||||
int id;
|
||||
char id[32+1];
|
||||
int x,y,ownr;
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in New Issue