1
0
mirror of https://gitlab.com/OpenMW/openmw.git synced 2025-02-05 06:40:09 +00:00

Don't reset idle time when there is no camera movement (Fixes #3902)

This commit is contained in:
scrawl 2017-06-25 13:08:55 +02:00
parent 7704dcfcce
commit ec458ef385

View File

@ -417,6 +417,8 @@ namespace MWInput
{
float xAxis = mInputBinder->getChannel(A_LookLeftRight)->getValue()*2.0f-1.0f;
float yAxis = mInputBinder->getChannel(A_LookUpDown)->getValue()*2.0f-1.0f;
if (xAxis != 0 || yAxis != 0)
{
resetIdleTime();
float rot[3];
@ -431,6 +433,7 @@ namespace MWInput
mPlayer->pitch(rot[0]);
}
}
}
// Disable movement in Gui mode
if (!(MWBase::Environment::get().getWindowManager()->isGuiMode()