1
0
Fork 1
mirror of https://github.com/TES3MP/openmw-tes3mp.git synced 2025-01-31 19:45:32 +00:00

no vanity in gui mode (thanks scrawl)

This commit is contained in:
greye 2012-08-17 23:44:28 +04:00
parent d2b451eb7d
commit 3f3972eb3b

View file

@ -116,7 +116,7 @@ private:
if (mTimeIdle >= 0.f) {
mTimeIdle += dt;
}
if (mTimeIdle > 30.f) {
if (mTimeIdle > 30.f && !windows.isGuiMode()) {
MWBase::Environment::get().getWorld()->toggleVanityMode(true, false);
mTimeIdle = -1.f;
}