Fixed db2 loading, and world login.

This commit is contained in:
hondacrx
2023-01-11 16:38:29 -05:00
parent dd8d17a4da
commit 3dad3747ce
8 changed files with 34 additions and 65 deletions
+3 -3
View File
@@ -295,7 +295,7 @@ namespace Game
}
//General
public void LoadCypherStrings()
public bool LoadCypherStrings()
{
var time = Time.GetMSTime();
CypherStringStorage.Clear();
@@ -304,8 +304,7 @@ namespace Game
if (result.IsEmpty())
{
Log.outInfo(LogFilter.ServerLoading, "Loaded 0 CypherStrings. DB table `trinity_string` is empty.");
Global.WorldMgr.StopNow();
return;
return false;
}
uint count = 0;
do
@@ -321,6 +320,7 @@ namespace Game
while (result.NextRow());
Log.outInfo(LogFilter.ServerLoading, "Loaded {0} CypherStrings in {1} ms", count, Time.GetMSTimeDiffToNow(time));
return true;
}
public void LoadRaceAndClassExpansionRequirements()