From 5b7a23f75cdb021f22da7644e1576b1a9b0496b8 Mon Sep 17 00:00:00 2001 From: Ykkrosh Date: Fri, 1 Apr 2011 17:57:04 +0000 Subject: [PATCH] Make ResetCameraTarget more sensible if the camera was rotated. This was SVN commit r9138. --- source/graphics/GameView.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/source/graphics/GameView.cpp b/source/graphics/GameView.cpp index 4a9ff19fe4..4e785ccc32 100644 --- a/source/graphics/GameView.cpp +++ b/source/graphics/GameView.cpp @@ -924,6 +924,8 @@ void CGameView::ResetCameraTarget(const CVector3D& target) m->PosX.SetValue(target.X - delta.X); m->PosY.SetValue(target.Y - delta.Y); m->PosZ.SetValue(target.Z - delta.Z); + m->RotateX.SetValue(DEGTORAD(m->ViewRotateXDefault)); + m->RotateY.SetValue(DEGTORAD(m->ViewRotateYDefault)); ClampDistance(m, false);