GetPCInJail and GetPCTraveling do not work as in vanilla
I'm opening this bug on behalf of dabeowul1 from IRC, who didn't have an account for the bug tracker or github. According to dabeowul, some survival mods don't work because of an issue with getPCInJail.
Currently if you play a mod like Necessities of Morrowind for purists (or some eat/drink/sleep mod which says it can cope with jailtime) you will find yourself die from starvation/sleep deprivation/dehydration whatever as soon as jailtime ends because the time advancement happens while getPCInJail indicates you are not still in jail.
I think the only actually needed change is the one where "MWBase::Environment::get().getWorld()->advanceTime(mDays * 24);" is called. If anyone brings in to their attention I'd be happy. Maybe also the place where "MWBase::Environment::get().getWindowManager()->removeGuiMode(MWGui::GM_Jail);" is executed. From that pastebin, everything else I attempted to fix it which is still in that diff there should be irrelevant.
Here is the pastebin dabeowul referenced: http://pastebin.com/raw/uKSrPdiB
(RM-3788 from redmine: created on 2017-03-13 by Aaron Paden, )