Core: Misc fixes
This commit is contained in:
@@ -38,6 +38,12 @@ namespace Framework.Networking
|
||||
return true;
|
||||
}
|
||||
|
||||
public void Wait()
|
||||
{
|
||||
_thread.Join();
|
||||
_thread = null;
|
||||
}
|
||||
|
||||
public int GetConnectionCount()
|
||||
{
|
||||
return _connections;
|
||||
|
||||
@@ -65,9 +65,9 @@ namespace Framework.Networking
|
||||
|
||||
void Wait()
|
||||
{
|
||||
//if (_threadCount != 0)
|
||||
//for (int i = 0; i < _threadCount; ++i)
|
||||
//_threads[i].Wait();
|
||||
if (_threadCount != 0)
|
||||
for (int i = 0; i < _threadCount; ++i)
|
||||
_threads[i].Wait();
|
||||
}
|
||||
|
||||
public virtual void OnSocketOpen(Socket sock)
|
||||
|
||||
@@ -94,7 +94,7 @@ namespace Game.Entities
|
||||
Relocate(pos);
|
||||
if (!IsPositionValid())
|
||||
{
|
||||
Log.outError(LogFilter.AreaTrigger, "AreaTrigger (spell {0}) not created. Invalid coordinates (X: {0} Y: {1})", spell.Id, GetPositionX(), GetPositionY());
|
||||
Log.outError(LogFilter.AreaTrigger, $"AreaTrigger (spell {spell.Id}) not created. Invalid coordinates (X: {GetPositionX()} Y: {GetPositionY()})");
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
@@ -321,7 +321,7 @@ namespace Game.Entities
|
||||
{
|
||||
SpellInfo newInfo = Global.SpellMgr.GetSpellInfo(spellId);
|
||||
if (newInfo != null)
|
||||
return base.GetCastSpellInfo(newInfo);
|
||||
return GetCastSpellInfo(newInfo);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -2612,7 +2612,6 @@ namespace Game.Entities
|
||||
}
|
||||
}
|
||||
|
||||
// "the bodies of template functions must be made available in a header file"
|
||||
public void ApplySpellMod<T>(uint spellId, SpellModOp op, ref T basevalue, Spell spell = null)
|
||||
{
|
||||
SpellInfo spellInfo = Global.SpellMgr.GetSpellInfo(spellId);
|
||||
|
||||
@@ -464,7 +464,7 @@ MaxCoreStuckTime = 0
|
||||
AddonChannel = 1
|
||||
|
||||
#
|
||||
# MapUpdate.Threads (NYI)
|
||||
# MapUpdate.Threads
|
||||
# Description: Number of threads to update maps.
|
||||
# Default: 1
|
||||
|
||||
|
||||
Reference in New Issue
Block a user