mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-21 09:44:45 +01:00
Minor changes here and there:
- Cosmetic changes - 'Engrish fix' - Initialization of some vars - Remove some not needed includes
This commit is contained in:
@@ -17,7 +17,6 @@
|
||||
*/
|
||||
|
||||
#include "Util.h"
|
||||
|
||||
#include "utf8.h"
|
||||
#ifdef USE_SFMT_FOR_RNG
|
||||
#include "SFMT.h"
|
||||
@@ -162,13 +161,13 @@ std::string secsToTimeString(uint64 timeInSecs, bool shortText, bool hoursOnly)
|
||||
|
||||
std::ostringstream ss;
|
||||
if (days)
|
||||
ss << days << (shortText ? "d " : " Day(s) ");
|
||||
ss << days << (shortText ? "d" : " Day(s) ");
|
||||
if (hours || hoursOnly)
|
||||
ss << hours << (shortText ? "h " : " Hour(s) ");
|
||||
ss << hours << (shortText ? "h" : " Hour(s) ");
|
||||
if (!hoursOnly)
|
||||
{
|
||||
if (minutes)
|
||||
ss << minutes << (shortText ? "m " : " Minute(s) ");
|
||||
ss << minutes << (shortText ? "m" : " Minute(s) ");
|
||||
if (secs || (!days && !hours && !minutes) )
|
||||
ss << secs << (shortText ? "s" : " Second(s).");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user