forked from teamnwah/openmw-tes3coop
fixed day count in rest dialogue
This commit is contained in:
parent
1078386fd7
commit
6c76e97bbc
2 changed files with 11 additions and 11 deletions
|
@ -142,7 +142,7 @@ namespace MWGui
|
||||||
|
|
||||||
std::string dateTimeText =
|
std::string dateTimeText =
|
||||||
boost::lexical_cast<std::string>(MWBase::Environment::get().getWorld ()->getDay ()) + " "
|
boost::lexical_cast<std::string>(MWBase::Environment::get().getWorld ()->getDay ()) + " "
|
||||||
+ month + " (#{sDay} " + boost::lexical_cast<std::string>(MWBase::Environment::get().getWorld ()->getTimeStamp ().getDay ()+1)
|
+ month + " (#{sDay} " + boost::lexical_cast<std::string>(MWBase::Environment::get().getWorld ()->getTimeStamp ().getDay())
|
||||||
+ ") " + boost::lexical_cast<std::string>(hour) + " " + (pm ? "#{sSaveMenuHelp05}" : "#{sSaveMenuHelp04}");
|
+ ") " + boost::lexical_cast<std::string>(hour) + " " + (pm ? "#{sSaveMenuHelp05}" : "#{sSaveMenuHelp04}");
|
||||||
|
|
||||||
mDateTimeText->setCaptionWithReplacing (dateTimeText);
|
mDateTimeText->setCaptionWithReplacing (dateTimeText);
|
||||||
|
|
|
@ -79,7 +79,7 @@ namespace MWWorld
|
||||||
{
|
{
|
||||||
// vanilla Morrowind does not define dayspassed.
|
// vanilla Morrowind does not define dayspassed.
|
||||||
Data value;
|
Data value;
|
||||||
value.mLong = 0;
|
value.mLong = 1; // but the addons start counting at 1 :(
|
||||||
|
|
||||||
mVariables.insert (std::make_pair ("dayspassed", std::make_pair ('l', value)));
|
mVariables.insert (std::make_pair ("dayspassed", std::make_pair ('l', value)));
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue