Core/Misc: Removed oldTotal from LocaleConstant
This commit is contained in:
@@ -368,10 +368,7 @@ namespace Framework.Constants
|
|||||||
None = 9,
|
None = 9,
|
||||||
ptBR = 10,
|
ptBR = 10,
|
||||||
itIT = 11,
|
itIT = 11,
|
||||||
Total = 12,
|
Total = 12
|
||||||
|
|
||||||
Max = 11,
|
|
||||||
OldTotal = 9// @todo convert in simple system
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public enum ComparisionType
|
public enum ComparisionType
|
||||||
|
|||||||
@@ -263,7 +263,7 @@ namespace Game.Chat
|
|||||||
{
|
{
|
||||||
var record = CliDB.ItemSparseStorage.Values.FirstOrDefault(itemSparse =>
|
var record = CliDB.ItemSparseStorage.Values.FirstOrDefault(itemSparse =>
|
||||||
{
|
{
|
||||||
for (LocaleConstant i = 0; i < LocaleConstant.Max; ++i)
|
for (LocaleConstant i = 0; i < LocaleConstant.Total; ++i)
|
||||||
if (itemName == itemSparse.Display[i])
|
if (itemName == itemSparse.Display[i])
|
||||||
return true;
|
return true;
|
||||||
return false;
|
return false;
|
||||||
|
|||||||
@@ -169,7 +169,7 @@ namespace Game.DataStorage
|
|||||||
if (preparedStatementLocale == 0)
|
if (preparedStatementLocale == 0)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
for (LocaleConstant locale = 0; locale < LocaleConstant.OldTotal; ++locale)
|
for (LocaleConstant locale = 0; locale < LocaleConstant.Total; ++locale)
|
||||||
{
|
{
|
||||||
if (Global.WorldMgr.GetDefaultDbcLocale() == locale || locale == LocaleConstant.None)
|
if (Global.WorldMgr.GetDefaultDbcLocale() == locale || locale == LocaleConstant.None)
|
||||||
continue;
|
continue;
|
||||||
|
|||||||
@@ -771,7 +771,7 @@ namespace Game.Maps
|
|||||||
}
|
}
|
||||||
|
|
||||||
MessageBuilder Builder;
|
MessageBuilder Builder;
|
||||||
ServerPacket[] i_data_cache = new ServerPacket[(int)LocaleConstant.Max]; // 0 = default, i => i-1 locale index
|
ServerPacket[] i_data_cache = new ServerPacket[(int)LocaleConstant.Total]; // 0 = default, i => i-1 locale index
|
||||||
}
|
}
|
||||||
|
|
||||||
public class LocalizedPacketListDo : IDoWork<Player>
|
public class LocalizedPacketListDo : IDoWork<Player>
|
||||||
|
|||||||
@@ -398,7 +398,7 @@ namespace Game
|
|||||||
if (creatureTextEntry == null)
|
if (creatureTextEntry == null)
|
||||||
return "";
|
return "";
|
||||||
|
|
||||||
if (locale > LocaleConstant.Max)
|
if (locale >= LocaleConstant.Total)
|
||||||
locale = LocaleConstant.enUS;
|
locale = LocaleConstant.enUS;
|
||||||
|
|
||||||
string baseText = "";
|
string baseText = "";
|
||||||
|
|||||||
Reference in New Issue
Block a user