mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-01-19 21:23:52 +00:00
Issue #438: set 0 a.m. to be 12 a.m.
This commit is contained in:
parent
9e8eb0d8d3
commit
7911f08c53
1 changed files with 1 additions and 0 deletions
|
@ -120,6 +120,7 @@ namespace MWGui
|
|||
int hour = MWBase::Environment::get().getWorld ()->getTimeStamp ().getHour ();
|
||||
bool pm = hour >= 12;
|
||||
if (hour >= 13) hour -= 12;
|
||||
if (hour == 0) hour = 12;
|
||||
|
||||
std::string dateTimeText =
|
||||
boost::lexical_cast<std::string>(MWBase::Environment::get().getWorld ()->getDay ()+1) + " "
|
||||
|
|
Loading…
Reference in a new issue