mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-02-10 21:40:15 +00:00
Issue #438: set 0 a.m. to be 12 a.m.
This commit is contained in:
parent
9e8eb0d8d3
commit
7911f08c53
@ -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…
x
Reference in New Issue
Block a user