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

fixed day count in rest dialogue

This commit is contained in:
Marc Zinnschlag 2013-03-25 11:53:02 +01:00
parent 1078386fd7
commit 6c76e97bbc
2 changed files with 11 additions and 11 deletions

View File

@ -142,7 +142,7 @@ namespace MWGui
std::string dateTimeText =
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}");
mDateTimeText->setCaptionWithReplacing (dateTimeText);

View File

@ -79,7 +79,7 @@ namespace MWWorld
{
// vanilla Morrowind does not define dayspassed.
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)));
}