Adds rotation to starting camera (currently unused)

This was SVN commit r9623.
This commit is contained in:
historic_bruno
2011-06-16 21:21:33 +00:00
parent 2fa7c8aeca
commit 3be43ede41
7 changed files with 53 additions and 20 deletions
+3 -2
View File
@@ -288,12 +288,13 @@ int CMapReader::ApplyData()
{
// Default to global camera (with constraints)
pGameView->ResetCameraTarget(pGameView->GetCamera()->GetFocus());
// TODO: Starting rotation?
CmpPtr<ICmpPlayer> cmpPlayer(*pSimulation2, cmpPlayerManager->GetPlayerByID(m_PlayerID));
if (!cmpPlayer.null() && cmpPlayer->HasStartingCamera())
{
// Use player starting camera
CFixedVector3D pos = cmpPlayer->GetStartingCamera();
CFixedVector3D pos = cmpPlayer->GetStartingCameraPos();
pGameView->ResetCameraTarget(CVector3D(pos.X.ToFloat(), pos.Y.ToFloat(), pos.Z.ToFloat()));
}
else if (m_StartingCameraTarget != INVALID_ENTITY)