mirror of
https://github.com/OpenMW/openmw.git
synced 2025-01-19 19:53:53 +00:00
Fix player looking/controls
This commit is contained in:
parent
8c8fffc2c6
commit
ccb506385f
1 changed files with 1 additions and 1 deletions
|
@ -220,7 +220,7 @@ namespace MWInput
|
||||||
};
|
};
|
||||||
|
|
||||||
// Only actually turn player when we're not in vanity mode
|
// Only actually turn player when we're not in vanity mode
|
||||||
bool controls = MWBase::Environment::get().getInputManager()->getControlSwitch("playercontrols");
|
bool controls = MWBase::Environment::get().getInputManager()->getControlSwitch("playerlooking");
|
||||||
if (!MWBase::Environment::get().getWorld()->vanityRotateCamera(rot) && controls)
|
if (!MWBase::Environment::get().getWorld()->vanityRotateCamera(rot) && controls)
|
||||||
{
|
{
|
||||||
MWWorld::Player& player = MWBase::Environment::get().getWorld()->getPlayer();
|
MWWorld::Player& player = MWBase::Environment::get().getWorld()->getPlayer();
|
||||||
|
|
Loading…
Reference in a new issue