2
3
mirror of https://foundry.openuru.org/gitblit/r/CWE-ou-minkata.git synced 2025-07-14 02:27:40 -04:00

RefreshFOV camera command

This commit is contained in:
2013-02-25 19:53:25 -05:00
parent e89071f04d
commit 1142d8d340
4 changed files with 15 additions and 1 deletions

View File

@ -1370,6 +1370,11 @@ bool plVirtualCam1::MsgReceive(plMessage* msg)
}
}
}
else
if (pCam->Cmd(plCameraMsg::kRefreshFOV))
{
Refresh();
}
}
plGenRefMsg* pRefMsg = plGenRefMsg::ConvertNoRef(msg);
if (pRefMsg )

View File

@ -373,3 +373,11 @@ bool cyCamera::IsStayInFirstPerson()
}
return false;
}
void cyCamera::RefreshFOV()
{
plCameraMsg* pMsg = new plCameraMsg();
pMsg->SetSender(fSender);
pMsg->SetCmd(plCameraMsg::kRefreshFOV);
pMsg->Send(fTheCam);
}

View File

@ -114,7 +114,7 @@ public:
virtual void SetAspectRatio(float aspectratio) { plVirtualCam1::SetAspectRatio(aspectratio); }
virtual float GetAspectRatio() const { return plVirtualCam1::GetAspectRatio(); }
virtual void RefreshFOV() { plVirtualCam1::Refresh(); }
virtual void RefreshFOV();
};