Core/Players: Save homebind location on creation instead of delaying it to first login

Port From (https://github.com/TrinityCore/TrinityCore/commit/696be301d304e92245c1d332c28ae61b0390e330)
This commit is contained in:
hondacrx
2021-10-02 21:01:21 -04:00
parent 4a97883559
commit b1152ac9fa
4 changed files with 42 additions and 8 deletions
+2 -1
View File
@@ -802,7 +802,7 @@ namespace Game
Log.outInfo(LogFilter.ServerLoading, $"Loaded {_worldSafeLocs.Count} world locations {Time.GetMSTimeDiffToNow(oldMSTime)} ms");
}
WorldSafeLocsEntry GetDefaultGraveYard(Team team)
public WorldSafeLocsEntry GetDefaultGraveYard(Team team)
{
if (team == Team.Horde)
return GetWorldSafeLoc(10);
@@ -810,6 +810,7 @@ namespace Game
return GetWorldSafeLoc(4);
else return null;
}
public WorldSafeLocsEntry GetClosestGraveYard(WorldLocation location, Team team, WorldObject conditionObject)
{
float x, y, z;