mirror of
https://gitea.wildfiregames.com/0ad/0ad
synced 2026-07-04 05:55:47 -07:00
Make ResetCameraTarget more sensible if the camera was rotated.
This was SVN commit r9138.
This commit is contained in:
parent
6026330fce
commit
5b7a23f75c
1 changed files with 2 additions and 0 deletions
|
|
@ -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);
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue