Rename C4ObjectList::DenumerateRead to DenumeratePointers

It does the same as all the other DenumeratePointers functions: Convert
Object Numbers to Object Pointers after load.
Günther Brammer 2011-09-19 21:02:28 +02:00
parent f8702a4ff8
commit 221ffa7524
4 changed files with 4 additions and 4 deletions

View File

@ -2466,7 +2466,7 @@ void C4Object::Denumerate(C4ValueNumbers * numbers)
Layer.DenumeratePointers();
// Post-compile object list
Contents.DenumerateRead();
Contents.DenumeratePointers();
// Commands
for (C4Command *pCom=Command; pCom; pCom=pCom->Next)

View File

@ -471,7 +471,7 @@ bool C4ObjectList::IsClear() const
return (ObjectCount()==0);
}
bool C4ObjectList::DenumerateRead()
bool C4ObjectList::DenumeratePointers()
{
if (!pEnumerated) return false;
// Denumerate all object pointers

View File

@ -113,7 +113,7 @@ public:
StdStrBuf GetNameList(C4DefList &rDefs);
StdStrBuf GetDataString();
bool IsClear() const;
bool DenumerateRead();
bool DenumeratePointers();
bool Write(char *szTarget);
void CompileFunc(StdCompiler *pComp, C4ValueNumbers * = 0);
void CompileFunc(StdCompiler *pComp, bool fSkipPlayerObjects, C4ValueNumbers *);

View File

@ -1346,7 +1346,7 @@ void C4Player::DoTeamSelection(int32_t idTeam)
void C4Player::DenumeratePointers()
{
// Crew
Crew.DenumerateRead();
Crew.DenumeratePointers();
// Cursor
Cursor.DenumeratePointers();
// ViewCursor