mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-01-26 18:35:20 +00:00
Updated parameter name to reflect units
This commit is contained in:
parent
e86891d6e1
commit
69729046bf
@ -312,12 +312,12 @@ namespace MWGui
|
||||
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 hours = (timePlayed / 60 / 60) % 24;
|
||||
int minutes = (timePlayed / 60) % 60;
|
||||
int seconds = timePlayed % 60;
|
||||
int days = timeInSeconds / 60 / 60 / 24;
|
||||
int hours = (timeInSeconds / 60 / 60) % 24;
|
||||
int minutes = (timeInSeconds / 60) % 60;
|
||||
int seconds = timeInSeconds % 60;
|
||||
|
||||
std::stringstream stream;
|
||||
stream << std::setfill('0') << std::setw(2) << days << ":";
|
||||
|
Loading…
x
Reference in New Issue
Block a user