Core/Commands: .pinfo improvements

- Allow .pinfo <guid>
- Add map/zone/subzone/phase to output
This commit is contained in:
leak
2011-08-13 13:00:38 +02:00
parent bac78de203
commit 91a3bfe42a
5 changed files with 73 additions and 15 deletions

View File

@@ -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).");
}