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 ) );