From 609986afedd9d49db916ae5967018eab9e0a7154 Mon Sep 17 00:00:00 2001 From: Anubisss Date: Fri, 19 Jun 2009 09:00:29 +0200 Subject: *Better reset time format in command .lookup map --HG-- branch : trunk --- src/game/Level3.cpp | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) (limited to 'src') diff --git a/src/game/Level3.cpp b/src/game/Level3.cpp index 849565cc030..adb904dbbbe 100644 --- a/src/game/Level3.cpp +++ b/src/game/Level3.cpp @@ -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()); -- cgit v1.2.3