mirror of
https://github.com/OpenMW/openmw.git
synced 2025-06-20 14:11:32 +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
1 changed files with 1 additions and 1 deletions
|
@ -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…
Reference in a new issue