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

Allow training window exit()

This commit is contained in:
scrawl 2017-10-08 20:38:20 +00:00
parent 9cde3e4408
commit 479f9535b4
2 changed files with 7 additions and 1 deletions

View file

@ -203,4 +203,10 @@ namespace MWGui
checkReferenceAvailable(); checkReferenceAvailable();
mTimeAdvancer.onFrame(dt); mTimeAdvancer.onFrame(dt);
} }
bool TrainingWindow::exit()
{
return !mTimeAdvancer.isRunning();
}
} }

View file

@ -16,7 +16,7 @@ namespace MWGui
virtual void onOpen(); virtual void onOpen();
bool exit() { return false; } bool exit();
void setPtr(const MWWorld::Ptr& actor); void setPtr(const MWWorld::Ptr& actor);