Fix camera behaviour when switching to viewpoint

1008-fix
tomangelo2 2018-04-15 00:06:04 +02:00
parent b04d8d205b
commit 2f71cce9c9
1 changed files with 3 additions and 1 deletions

View File

@ -748,7 +748,9 @@ bool CRobotMain::ProcessEvent(Event &event)
if (event.type >= EVENT_VIEWPOINT0 && event.type <= EVENT_VIEWPOINT9)
{
m_camera->SetScriptCamera(m_viewpoints[event.type - EVENT_VIEWPOINT0].eye, m_viewpoints[event.type - EVENT_VIEWPOINT0].look);
m_camera->SetType(Gfx::CAM_TYPE_SCRIPT);
m_camera->SetSmooth(Gfx::CAM_SMOOTH_HARD);
m_camera->SetScriptCameraAnimate(m_viewpoints[event.type - EVENT_VIEWPOINT0].eye, m_viewpoints[event.type - EVENT_VIEWPOINT0].look);
}
// Management of the console.