mirror of
https://gitea.wildfiregames.com/0ad/0ad.git
synced 2026-09-21 20:06:40 +00:00
This was SVN commit r1790.
This commit is contained in:
@@ -290,9 +290,9 @@ void CMapReader::ReadXML(const char* filename)
|
||||
HEntity ent = g_EntityManager.create(g_EntityTemplateCollection.getTemplate(TemplateName), Position, Orientation);
|
||||
|
||||
#ifdef SCED // HACK: ScEd doesn't have a g_Game, so we can't use its CPlayers
|
||||
ent->m_player = (CPlayer*)(intptr_t)PlayerID;
|
||||
ent->SetPlayer( (CPlayer*)(intptr_t)PlayerID );
|
||||
#else
|
||||
ent->m_player = g_Game->GetPlayer( PlayerID );
|
||||
ent->SetPlayer( g_Game->GetPlayer( PlayerID ) );
|
||||
#endif
|
||||
}
|
||||
}
|
||||
|
||||
@@ -280,9 +280,9 @@ void CMapWriter::WriteXML(const char* filename, CUnitManager* pUnitMan)
|
||||
XML_Setting("Template", entity->m_base->m_Tag);
|
||||
|
||||
#ifdef SCED // HACK: ScEd doesn't have a g_Game, so we can't use its CPlayers
|
||||
XML_Setting("Player", (int)(intptr_t)entity->m_player);
|
||||
XML_Setting( "Player", (int)(intptr_t)entity->GetPlayer() );
|
||||
#else
|
||||
XML_Setting("Player", entity->m_player);
|
||||
XML_Setting( "Player", entity->GetPlayer() );
|
||||
#endif
|
||||
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user