mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-01-26 09:35:28 +00:00
Bug #907
Added a check to make sure playerview is allowed when attempting to scroll, locking out zooming before character creation.
This commit is contained in:
parent
d5ef843f56
commit
58bb0b8773
@ -585,7 +585,7 @@ namespace MWInput
|
|||||||
mPlayer->pitch(-y/scale);
|
mPlayer->pitch(-y/scale);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (arg.zrel)
|
if (arg.zrel && mControlSwitch["playerviewswitch"]) //Check to make sure you are allowed to zoomout and there is a change
|
||||||
{
|
{
|
||||||
MWBase::Environment::get().getWorld()->changeVanityModeScale(arg.zrel);
|
MWBase::Environment::get().getWorld()->changeVanityModeScale(arg.zrel);
|
||||||
MWBase::Environment::get().getWorld()->setCameraDistance(arg.zrel, true, true);
|
MWBase::Environment::get().getWorld()->setCameraDistance(arg.zrel, true, true);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user