1
0
Fork 0
mirror of https://github.com/OpenMW/openmw.git synced 2025-01-21 06:53:53 +00:00

Make the jail progress last one second

This commit is contained in:
MiroslavR 2015-02-23 00:23:09 +01:00
parent 4c5bba2947
commit 47c053444f

View file

@ -17,7 +17,7 @@ namespace MWGui
{
JailScreen::JailScreen()
: WindowBase("openmw_jail_screen.layout"),
mTimeAdvancer(0.0125),
mTimeAdvancer(0.01),
mDays(1),
mFadeTimeRemaining(0)
{
@ -39,7 +39,7 @@ namespace MWGui
mFadeTimeRemaining = 0.5;
setVisible(false);
mProgressBar->setScrollRange(days*24+1);
mProgressBar->setScrollRange(100+1);
mProgressBar->setScrollPosition(0);
mProgressBar->setTrackSize(0);
}
@ -59,7 +59,7 @@ namespace MWGui
MWBase::Environment::get().getWorld()->teleportToClosestMarker(player, "prisonmarker");
setVisible(true);
mTimeAdvancer.run(mDays*24);
mTimeAdvancer.run(100);
}
}