mirror of
https://github.com/OpenMW/openmw.git
synced 2025-01-19 19:53:53 +00:00
DialogueWindow: do not execute onFrame() when not visible
This commit is contained in:
parent
f1f9173f24
commit
82287445af
1 changed files with 1 additions and 1 deletions
|
@ -490,7 +490,7 @@ void DialogueWindow::onReferenceUnavailable()
|
|||
|
||||
void DialogueWindow::onFrame()
|
||||
{
|
||||
if(mEnabled && mPtr.getTypeName() == typeid(ESM::NPC).name())
|
||||
if(mMainWidget->getVisible() && mEnabled && mPtr.getTypeName() == typeid(ESM::NPC).name())
|
||||
{
|
||||
int disp = std::max(0, std::min(100,
|
||||
MWBase::Environment::get().getMechanicsManager()->getDerivedDisposition(mPtr)
|
||||
|
|
Loading…
Reference in a new issue