*Better reset time format in command .lookup map
--HG-- branch : trunk
This commit is contained in:
1 parent
efe02a5e36
commit
609986afed
3 files changed
+14
-5
No files matched your search
+10
-3
@@ -3871,17 +3871,24 @@ bool ChatHandler::HandleLookupMapCommand(const char* args)
|
||||
ss << GetTrinityString(LANG_HEROIC);
|
||||
|
||||
uint32 ResetTimeRaid = MapInfo->resetTimeRaid;
|
||||
std::string ResetTimeRaidStr;
|
||||
if(ResetTimeRaid)
|
||||
ResetTimeRaidStr = secsToTimeString(ResetTimeRaid, true, false);
|
||||
|
||||
uint32 ResetTimeHeroic = MapInfo->resetTimeHeroic;
|
||||
std::string ResetTimeHeroicStr;
|
||||
if(ResetTimeHeroic)
|
||||
ResetTimeHeroicStr = secsToTimeString(ResetTimeHeroic, true, false);
|
||||
|
||||
if(MapInfo->IsMountAllowed())
|
||||
ss << GetTrinityString(LANG_MOUNTABLE);
|
||||
|
||||
if(ResetTimeRaid && !ResetTimeHeroic)
|
||||
PSendSysMessage(ss.str().c_str(), ResetTimeRaid);
|
||||
PSendSysMessage(ss.str().c_str(), ResetTimeRaidStr.c_str());
|
||||
else if(!ResetTimeRaid && ResetTimeHeroic)
|
||||
PSendSysMessage(ss.str().c_str(), ResetTimeHeroic);
|
||||
PSendSysMessage(ss.str().c_str(), ResetTimeHeroicStr.c_str());
|
||||
else if(ResetTimeRaid && ResetTimeHeroic)
|
||||
PSendSysMessage(ss.str().c_str(), ResetTimeRaid, ResetTimeHeroic);
|
||||
PSendSysMessage(ss.str().c_str(), ResetTimeRaidStr.c_str(), ResetTimeHeroicStr.c_str());
|
||||
else
|
||||
SendSysMessage(ss.str().c_str());
|
||||
|
||||
|
||||
Reference in new issue
Block a user