Core/Maps: Move some more Map internals to actually be... internals.

This commit is contained in:
Treeston
2021-01-01 04:03:19 +01:00
committed by Ovahlord
parent f7a79750c9
commit 4aa098a50e
2 changed files with 12 additions and 12 deletions

View File

@@ -3159,11 +3159,11 @@ bool Map::CheckRespawn(RespawnInfo* info)
return true;
}
void Map::Respawn(RespawnInfo const* info, CharacterDatabaseTransaction dbTrans)
void Map::Respawn(RespawnInfo* info, CharacterDatabaseTransaction dbTrans)
{
if (info->respawnTime <= GameTime::GetGameTime())
return;
const_cast<RespawnInfo*>(info)->respawnTime = GameTime::GetGameTime();
info->respawnTime = GameTime::GetGameTime();
_respawnTimes.increase(info->handle);
SaveRespawnInfoDB(*info, dbTrans);
}
@@ -3239,7 +3239,7 @@ void Map::GetRespawnInfo(std::vector<RespawnInfo const*>& respawnData, SpawnObje
PushRespawnInfoFrom(respawnData, _gameObjectRespawnTimesBySpawnId);
}
RespawnInfo const* Map::GetRespawnInfo(SpawnObjectType type, ObjectGuid::LowType spawnId) const
RespawnInfo* Map::GetRespawnInfo(SpawnObjectType type, ObjectGuid::LowType spawnId) const
{
RespawnInfoMap const& map = GetRespawnMapForType(type);
auto it = map.find(spawnId);