[Client] Don't advance time when waiting, traveling, training or jailed

pull/437/head
David Cernat 7 years ago
parent 02ba641bef
commit 031a80ed5a

@ -124,7 +124,16 @@ namespace MWGui
for (int i=0; i<mDays*24; ++i)
MWBase::Environment::get().getMechanicsManager()->rest(true);
MWBase::Environment::get().getWorld()->advanceTime(mDays * 24);
/*
Start of tes3mp change (major)
Multiplayer requires that time not get advanced here
*/
//MWBase::Environment::get().getWorld()->advanceTime(mDays * 24);
/*
End of tes3mp change (major)
*/
std::set<int> skills;
for (int day=0; day<mDays; ++day)

@ -194,7 +194,16 @@ namespace MWGui
// advance time
MWBase::Environment::get().getMechanicsManager()->rest(false);
MWBase::Environment::get().getMechanicsManager()->rest(false);
MWBase::Environment::get().getWorld ()->advanceTime (2);
/*
Start of tes3mp change (major)
Multiplayer requires that time not get advanced here
*/
//MWBase::Environment::get().getWorld ()->advanceTime (2);
/*
End of tes3mp change (major)
*/
setVisible(false);
mProgressBar.setVisible(true);

@ -177,7 +177,16 @@ namespace MWGui
{
MWBase::Environment::get().getMechanicsManager ()->rest (true);
}
MWBase::Environment::get().getWorld()->advanceTime(hours);
/*
Start of tes3mp change (major)
Multiplayer requires that time not get advanced here
*/
//MWBase::Environment::get().getWorld()->advanceTime(hours);
/*
End of tes3mp change (major)
*/
}
MWBase::Environment::get().getWindowManager()->removeGuiMode(GM_Travel);

@ -228,7 +228,16 @@ namespace MWGui
{
mProgressBar.setProgress(cur, total);
MWBase::Environment::get().getMechanicsManager()->rest(mSleeping);
MWBase::Environment::get().getWorld()->advanceTime(1);
/*
Start of tes3mp change (major)
Multiplayer requires that time not get advanced here
*/
//MWBase::Environment::get().getWorld()->advanceTime(1);
/*
End of tes3mp change (major)
*/
MWWorld::Ptr player = MWBase::Environment::get().getWorld()->getPlayerPtr();
if (player.getClass().getCreatureStats(player).isDead())

Loading…
Cancel
Save