mirror of
https://github.com/mangosfour/server.git
synced 2025-12-14 07:37:01 +00:00
[12065] Fix various warnings
This commit is contained in:
parent
5f4d61928f
commit
84080ee5d3
27 changed files with 91 additions and 89 deletions
|
|
@ -291,16 +291,16 @@ void DungeonPersistentState::UpdateEncounterState(EncounterCreditType type, uint
|
|||
{
|
||||
DungeonEncounterEntry const* dbcEntry = iter->second->dbcEntry;
|
||||
|
||||
if (iter->second->creditType == type && dbcEntry->Difficulty == GetDifficulty() && dbcEntry->mapId == GetMapId())
|
||||
if (iter->second->creditType == type && Difficulty(dbcEntry->Difficulty) == GetDifficulty() && dbcEntry->mapId == GetMapId())
|
||||
{
|
||||
m_completedEncountersMask |= 1 << dbcEntry->encounterIndex;
|
||||
|
||||
CharacterDatabase.PExecute("UPDATE instance SET encountersMask = '%u' WHERE id = '%u'", m_completedEncountersMask, GetInstanceId());
|
||||
|
||||
DEBUG_LOG("DungeonPersistentState: Dungeon %s (Id %u) completed encounter %s", GetMap()->GetMapName(), GetInstanceId(), dbcEntry->encounterName[sWorld.GetDefaultDbcLocale()]);
|
||||
if (uint32 dungeonId = iter->second->lastEncounterDungeon)
|
||||
if (/*uint32 dungeonId =*/ iter->second->lastEncounterDungeon)
|
||||
{
|
||||
DEBUG_LOG("DungeonPersistentState:: Dungeon %s (Id %u) completed last encounter %s", GetMap()->GetMapName(), GetInstanceId(), dbcEntry->encounterName[sWorld.GetDefaultDbcLocale()]);
|
||||
DEBUG_LOG("DungeonPersistentState:: Dungeon %s (Instance-Id %u) completed last encounter %s", GetMap()->GetMapName(), GetInstanceId(), dbcEntry->encounterName[sWorld.GetDefaultDbcLocale()]);
|
||||
// Place LFG reward here
|
||||
}
|
||||
return;
|
||||
|
|
@ -483,7 +483,7 @@ void DungeonResetScheduler::LoadResetTimes()
|
|||
// schedule the global reset/warning
|
||||
ResetEventType type = RESET_EVENT_INFORM_1;
|
||||
for (; type < RESET_EVENT_INFORM_LAST; type = ResetEventType(type + 1))
|
||||
if (t - resetEventTypeDelay[type] > now)
|
||||
if (t > time_t(now + resetEventTypeDelay[type]))
|
||||
break;
|
||||
|
||||
ScheduleReset(true, t - resetEventTypeDelay[type], DungeonResetEvent(type, mapid, difficulty, 0));
|
||||
|
|
@ -563,7 +563,7 @@ void DungeonResetScheduler::Update()
|
|||
|
||||
ResetEventType type = RESET_EVENT_INFORM_1;
|
||||
for (; type < RESET_EVENT_INFORM_LAST; type = ResetEventType(type + 1))
|
||||
if (next_reset - resetEventTypeDelay[type] > now)
|
||||
if (next_reset > time_t(now + resetEventTypeDelay[type]))
|
||||
break;
|
||||
|
||||
// add new scheduler event to the queue
|
||||
|
|
@ -618,7 +618,7 @@ MapPersistentState* MapPersistentStateManager::AddPersistentState(MapEntry const
|
|||
}
|
||||
}
|
||||
|
||||
DEBUG_LOG("MapPersistentStateManager::AddPersistentState: mapid = %d, instanceid = %d, reset time = %u, canRset = %u", mapEntry->MapID, instanceId, resetTime, canReset ? 1 : 0);
|
||||
DEBUG_LOG("MapPersistentStateManager::AddPersistentState: mapid = %d, instanceid = %d, reset time = '" UI64FMTD "', canRset = %u", mapEntry->MapID, instanceId, uint64(resetTime), canReset ? 1 : 0);
|
||||
|
||||
MapPersistentState* state;
|
||||
if (mapEntry->IsDungeon())
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue