mirror of
https://github.com/OpenMW/openmw.git
synced 2025-01-30 13:15:34 +00:00
Pass const float* to vanityRotateCamera
This commit is contained in:
parent
19940987a3
commit
5a27ccacb7
3 changed files with 3 additions and 3 deletions
|
@ -377,7 +377,7 @@ namespace MWBase
|
|||
virtual bool isFirstPerson() const = 0;
|
||||
virtual bool isPreviewModeEnabled() const = 0;
|
||||
virtual bool toggleVanityMode(bool enable) = 0;
|
||||
virtual bool vanityRotateCamera(float* rot) = 0;
|
||||
virtual bool vanityRotateCamera(const float* rot) = 0;
|
||||
virtual void applyDeferredPreviewRotationToPlayer(float dt) = 0;
|
||||
virtual void disableDeferredPreviewRotation() = 0;
|
||||
|
||||
|
|
|
@ -2299,7 +2299,7 @@ namespace MWWorld
|
|||
return mRendering->getCamera();
|
||||
}
|
||||
|
||||
bool World::vanityRotateCamera(float* rot)
|
||||
bool World::vanityRotateCamera(const float* rot)
|
||||
{
|
||||
auto* camera = mRendering->getCamera();
|
||||
if (!camera->isVanityOrPreviewModeEnabled())
|
||||
|
|
|
@ -468,7 +468,7 @@ namespace MWWorld
|
|||
bool toggleVanityMode(bool enable) override;
|
||||
|
||||
MWRender::Camera* getCamera() override;
|
||||
bool vanityRotateCamera(float* rot) override;
|
||||
bool vanityRotateCamera(const float* rot) override;
|
||||
|
||||
void applyDeferredPreviewRotationToPlayer(float dt) override;
|
||||
void disableDeferredPreviewRotation() override;
|
||||
|
|
Loading…
Reference in a new issue