From 05ae51351c5b8a28d404b558e88f68cc2f726464 Mon Sep 17 00:00:00 2001 From: notpete Date: Mon, 7 Jun 2004 19:57:19 +0000 Subject: [PATCH] Minor change to support on-demand texture loading; fixed backwards orientation issue. This was SVN commit r413. --- source/graphics/MapReader.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/source/graphics/MapReader.cpp b/source/graphics/MapReader.cpp index f51ef752e1..cd893b8d55 100755 --- a/source/graphics/MapReader.cpp +++ b/source/graphics/MapReader.cpp @@ -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 ) );