mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-04-01 04:06:41 +00:00
Fix #107
This commit is contained in:
parent
6b88a7ab1e
commit
2172aa17f1
1 changed files with 4 additions and 6 deletions
|
@ -459,7 +459,6 @@ namespace MWVR
|
|||
auto* vrGuiManager = Environment::get().getGUIManager();
|
||||
auto* wm = MWBase::Environment::get().getWindowManager();
|
||||
|
||||
|
||||
// OpenMW does not currently provide any way to directly request skipping a video.
|
||||
// This is copied from the controller manager and is used to skip videos,
|
||||
// and works because mygui only consumes the escape press if a video is currently playing.
|
||||
|
@ -476,11 +475,6 @@ namespace MWVR
|
|||
}
|
||||
}
|
||||
|
||||
if (disableControls)
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
bool guiMode = MWBase::Environment::get().getWindowManager()->isGuiMode();
|
||||
|
||||
if (guiMode)
|
||||
|
@ -596,6 +590,10 @@ namespace MWVR
|
|||
|
||||
else
|
||||
{
|
||||
if (disableControls)
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
// Hold actions
|
||||
switch (action->openMWActionCode())
|
||||
|
|
Loading…
Reference in a new issue