Core/Creatures: merged some minor respawn standards

This commit is contained in:
Ovahlord committed 2018-08-29 06:26:31 +02:00
1 parent 66d5321780
commit 416e6b36ba
2 files changed
+2 -2

No files matched your search

+1 -1
View File
@@ -3031,7 +3031,7 @@ bool Map::CheckRespawn(RespawnInfo* info)
ObjectGuid thisGUID = ObjectGuid((info->type == SPAWN_TYPE_GAMEOBJECT) ? HighGuid::GameObject : HighGuid::Unit, info->entry, info->spawnId);
if (time_t linkedTime = GetLinkedRespawnTime(thisGUID))
{
time_t now = time(NULL);
time_t now = GameTime::GetGameTime();
time_t respawnTime;
if (linkedTime == std::numeric_limits<time_t>::max())
respawnTime = linkedTime;