Core/Misc: Various dynspawn cleanup and refactors split off from pooling rewrite:

Port From (https://github.com/TrinityCore/TrinityCore/commit/eee950cdd7bcbe9443a53ea5c4cce35444a503f7)
This commit is contained in:
hondacrx
2021-12-27 18:09:58 -05:00
parent 9b2d1e67b6
commit 55c298be9f
6 changed files with 92 additions and 94 deletions
+1 -1
View File
@@ -1959,7 +1959,7 @@ namespace Game.Chat
uint gridId = GridDefines.ComputeGridCoord(player.GetPositionX(), player.GetPositionY()).GetId();
foreach (RespawnInfo info in data)
if (info.gridId == gridId)
player.GetMap().RemoveRespawnTime(info, true);
player.GetMap().RemoveRespawnTime(info.type, info.spawnId);
}
return true;