mirror of
https://gitea.wildfiregames.com/0ad/0ad
synced 2026-07-04 05:55:47 -07:00
Minor change to support on-demand texture loading; fixed backwards orientation issue.
This was SVN commit r413.
This commit is contained in:
parent
6caf7c7466
commit
05ae51351c
1 changed files with 2 additions and 2 deletions
|
|
@ -110,7 +110,7 @@ void CMapReader::UnpackTerrain(CFileUnpacker& unpacker)
|
|||
// ack; mismatch between texture datasets?
|
||||
handle=0;
|
||||
} else {
|
||||
handle=texentry->m_Handle;
|
||||
handle=texentry->GetHandle();
|
||||
}
|
||||
m_TerrainTextures.push_back(handle);
|
||||
}
|
||||
|
|
@ -157,7 +157,7 @@ void CMapReader::ApplyData(CFileUnpacker& unpacker)
|
|||
CBaseEntity* templateObject = g_EntityTemplateCollection.getTemplateByActor( objentry );
|
||||
if( templateObject )
|
||||
{
|
||||
CVector3D orient = -((CMatrix3D*)m_Objects[i].m_Transform)->GetIn();
|
||||
CVector3D orient = ((CMatrix3D*)m_Objects[i].m_Transform)->GetIn();
|
||||
CVector3D position = ((CMatrix3D*)m_Objects[i].m_Transform)->GetTranslation();
|
||||
|
||||
g_EntityManager.create( templateObject, position, atan2( -orient.X, -orient.Z ) );
|
||||
|
|
|
|||
Loading…
Reference in a new issue