forked from mirror/openmw-tes3mp
Updated parameter name to reflect units
This commit is contained in:
parent
e86891d6e1
commit
69729046bf
1 changed files with 5 additions and 5 deletions
|
@ -312,12 +312,12 @@ namespace MWGui
|
||||||
onSlotSelected(mSaveList, MyGUI::ITEM_NONE);
|
onSlotSelected(mSaveList, MyGUI::ITEM_NONE);
|
||||||
}
|
}
|
||||||
|
|
||||||
std::string formatTimeplayed(const long int timePlayed)
|
std::string formatTimeplayed(const long int timeInSeconds)
|
||||||
{
|
{
|
||||||
int days = timePlayed / 60 / 60 / 24;
|
int days = timeInSeconds / 60 / 60 / 24;
|
||||||
int hours = (timePlayed / 60 / 60) % 24;
|
int hours = (timeInSeconds / 60 / 60) % 24;
|
||||||
int minutes = (timePlayed / 60) % 60;
|
int minutes = (timeInSeconds / 60) % 60;
|
||||||
int seconds = timePlayed % 60;
|
int seconds = timeInSeconds % 60;
|
||||||
|
|
||||||
std::stringstream stream;
|
std::stringstream stream;
|
||||||
stream << std::setfill('0') << std::setw(2) << days << ":";
|
stream << std::setfill('0') << std::setw(2) << days << ":";
|
||||||
|
|
Loading…
Reference in a new issue