Player's death now interrupts waiting/sleeping

coverity_scan^2
MiroslavR 9 years ago
parent d4e29e3e0c
commit 41484432b4

@ -191,6 +191,10 @@ namespace MWGui
mProgressBar.setProgress(cur, total);
MWBase::Environment::get().getWorld()->advanceTime(1);
MWBase::Environment::get().getMechanicsManager()->rest(mSleeping);
MWWorld::Ptr player = MWBase::Environment::get().getWorld()->getPlayerPtr();
if (player.getClass().getCreatureStats(player).isDead())
stopWaiting();
}
void WaitDialog::onWaitingInterrupted()

Loading…
Cancel
Save