Core/InstanceScript: std::chrono-ify DoRespawnGameObject

(cherry picked from commit d7ff8c272a)
This commit is contained in:
Carbenium
2020-07-25 20:09:03 +02:00
committed by Shauren
parent 7c43afa471
commit 5f296fb7c7
8 changed files with 10 additions and 9 deletions

View File

@@ -556,7 +556,7 @@ void InstanceScript::DoCloseDoorOrButton(ObjectGuid guid)
TC_LOG_DEBUG("scripts", "InstanceScript: DoCloseDoorOrButton failed");
}
void InstanceScript::DoRespawnGameObject(ObjectGuid guid, uint32 timeToDespawn /*= MINUTE*/)
void InstanceScript::DoRespawnGameObject(ObjectGuid guid, Seconds timeToDespawn /*= 1min */)
{
if (GameObject* go = instance->GetGameObject(guid))
{
@@ -576,7 +576,7 @@ void InstanceScript::DoRespawnGameObject(ObjectGuid guid, uint32 timeToDespawn /
if (go->isSpawned())
return;
go->SetRespawnTime(timeToDespawn);
go->SetRespawnTime(timeToDespawn.count());
}
else
TC_LOG_DEBUG("scripts", "InstanceScript: DoRespawnGameObject failed");