Misc cleanups
This commit is contained in:
@@ -78,7 +78,7 @@ class FileAppender : Appender, IDisposable
|
|||||||
{
|
{
|
||||||
lock (locker)
|
lock (locker)
|
||||||
{
|
{
|
||||||
var logBytes = Encoding.Unicode.GetBytes(message.prefix + message.text + "\r\n");
|
var logBytes = Encoding.UTF8.GetBytes(message.prefix + message.text + "\r\n");
|
||||||
|
|
||||||
if (_dynamicName)
|
if (_dynamicName)
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -4440,14 +4440,14 @@ namespace Game
|
|||||||
if (Global.SpellMgr.HasSpellInfo(dataN, Difficulty.None))
|
if (Global.SpellMgr.HasSpellInfo(dataN, Difficulty.None))
|
||||||
return;
|
return;
|
||||||
|
|
||||||
Log.outError(LogFilter.Sql, "Gameobject (Entry: {0} GoType: {1}) have data{2}={3} but Spell (Entry {4}) not exist.", goInfo.entry, goInfo.type, N, dataN, dataN);
|
Log.outError(LogFilter.Sql, "Gameobject (Entry: {0} GoType: {1}) have data{2}={3} but Spell (Entry {4}) not exist.", goInfo.entry, goInfo.type, N, dataN, dataN);
|
||||||
}
|
}
|
||||||
void CheckAndFixGOChairHeightId(GameObjectTemplate goInfo, ref uint dataN, uint N)
|
void CheckAndFixGOChairHeightId(GameObjectTemplate goInfo, ref uint dataN, uint N)
|
||||||
{
|
{
|
||||||
if (dataN <= (UnitStandStateType.SitHighChair - UnitStandStateType.SitLowChair))
|
if (dataN <= (UnitStandStateType.SitHighChair - UnitStandStateType.SitLowChair))
|
||||||
return;
|
return;
|
||||||
|
|
||||||
Log.outError(LogFilter.Sql, "Gameobject (Entry: {0} GoType: {1}) have data{2}={3} but correct chair height in range 0..{4}.", goInfo.entry, goInfo.type, N, dataN, UnitStandStateType.SitHighChair - UnitStandStateType.SitLowChair);
|
Log.outError(LogFilter.Sql, "Gameobject (Entry: {0} GoType: {1}) have data{2}={3} but correct chair height in range 0..{4}.", goInfo.entry, goInfo.type, N, dataN, UnitStandStateType.SitHighChair - UnitStandStateType.SitLowChair);
|
||||||
|
|
||||||
// prevent client and server unexpected work
|
// prevent client and server unexpected work
|
||||||
dataN = 0;
|
dataN = 0;
|
||||||
@@ -4466,7 +4466,7 @@ namespace Game
|
|||||||
if (dataN <= 1)
|
if (dataN <= 1)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
Log.outError(LogFilter.Sql, "Gameobject (Entry: {0} GoType: {1}) have data{2}={3} but expected boolean (0/1) consumable field value.",
|
Log.outError(LogFilter.Sql, "Gameobject (Entry: {0} GoType: {1}) have data{2}={3} but expected boolean (0/1) consumable field value.",
|
||||||
goInfo.entry, goInfo.type, N, dataN);
|
goInfo.entry, goInfo.type, N, dataN);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -2377,7 +2377,7 @@ namespace Game.Entities
|
|||||||
uint attributes = result.Read<uint>(1);
|
uint attributes = result.Read<uint>(1);
|
||||||
|
|
||||||
var spells = _GetSpellInfo(spellId);
|
var spells = _GetSpellInfo(spellId);
|
||||||
if (spells == null)
|
if (spells.Empty())
|
||||||
{
|
{
|
||||||
Log.outError(LogFilter.Sql, "Table `spell_custom_attr` has wrong spell (entry: {0}), ignored.", spellId);
|
Log.outError(LogFilter.Sql, "Table `spell_custom_attr` has wrong spell (entry: {0}), ignored.", spellId);
|
||||||
continue;
|
continue;
|
||||||
|
|||||||
Reference in New Issue
Block a user