1
0
mirror of https://gitlab.com/OpenMW/openmw.git synced 2025-01-25 06:35:30 +00:00
Added a check to make sure playerview is allowed when attempting to scroll, locking out zooming before character creation.
This commit is contained in:
Xethik 2013-09-20 21:26:12 -04:00
parent d5ef843f56
commit 58bb0b8773

View File

@ -585,7 +585,7 @@ namespace MWInput
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()->setCameraDistance(arg.zrel, true, true);