mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-01-25 06:35:30 +00:00
no vanity in gui mode (thanks scrawl)
This commit is contained in:
parent
d2b451eb7d
commit
3f3972eb3b
@ -116,7 +116,7 @@ private:
|
|||||||
if (mTimeIdle >= 0.f) {
|
if (mTimeIdle >= 0.f) {
|
||||||
mTimeIdle += dt;
|
mTimeIdle += dt;
|
||||||
}
|
}
|
||||||
if (mTimeIdle > 30.f) {
|
if (mTimeIdle > 30.f && !windows.isGuiMode()) {
|
||||||
MWBase::Environment::get().getWorld()->toggleVanityMode(true, false);
|
MWBase::Environment::get().getWorld()->toggleVanityMode(true, false);
|
||||||
mTimeIdle = -1.f;
|
mTimeIdle = -1.f;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user