Issue #438: set 0 a.m. to be 12 a.m.

actorid
bwrsandman 12 years ago
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…
Cancel
Save