Core/Maps: Move some more Map internals to actually be... internals.
This commit is contained in:
1 parent
f7a79750c9
commit
4aa098a50e
2 files changed
+12
-12
No files matched your search
@@ -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);
|
||||
|
||||
Reference in new issue
Block a user