1
0
Fork 0
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:
Zackhasacat 2024-02-20 13:07:44 -06:00
parent 8c8fffc2c6
commit ccb506385f

View file

@ -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();