1
0
forked from mirrors/0ad

The SetCameraTarget script function should not change the orientation

Reviewed by: Freagarach
Differential Revision: https://code.wildfiregames.com/D3569
This was SVN commit r24940.
This commit is contained in:
Imarok
2021-02-27 09:01:20 +00:00
parent 68b81f63b1
commit 4eadb3eb9d
@@ -103,7 +103,9 @@ void JSI_GameView::CameraMoveTo(ScriptInterface::CmptPrivate* UNUSED(pCmptPrivat
*/
void JSI_GameView::SetCameraTarget(ScriptInterface::CmptPrivate* UNUSED(pCmptPrivate), float x, float y, float z)
{
g_Game->GetView()->ResetCameraTarget(CVector3D(x, y, z));
if (!g_Game || !g_Game->GetView())
return;
g_Game->GetView()->MoveCameraTarget(CVector3D(x, y, z));
}
/**