mirror of
https://gitea.wildfiregames.com/0ad/0ad.git
synced 2026-07-24 02:34:04 +00:00
Adds rotation to starting camera (currently unused)
This was SVN commit r9623.
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user