1
0
mirror of https://gitlab.com/OpenMW/openmw.git synced 2025-01-26 09:35:28 +00:00

Heal player while in jail

This commit is contained in:
scrawl 2014-06-18 16:01:20 +02:00
parent 9a6737073f
commit 8a4227ec38

View File

@ -2615,6 +2615,8 @@ namespace MWWorld
int days = std::max(1, bounty / iDaysinPrisonMod);
advanceTime(days * 24);
for (int i=0; i<days*24; ++i)
MWBase::Environment::get().getMechanicsManager ()->rest (true);
std::set<int> skills;
for (int day=0; day<days; ++day)
@ -2658,8 +2660,6 @@ namespace MWWorld
message += "\n" + skillMsg;
}
// TODO: Sleep the player
std::vector<std::string> buttons;
buttons.push_back("#{sOk}");
MWBase::Environment::get().getWindowManager()->messageBox(message, buttons);