mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-20 17:27:36 +01:00
Core/Commands: .pinfo improvements
- Allow .pinfo <guid> - Add map/zone/subzone/phase to output
This commit is contained in:
@@ -162,13 +162,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