Core: SOme code cleanup, more to follow.

This commit is contained in:
hondacrx
2021-03-20 22:48:48 -04:00
parent 62f554f2e0
commit 62ec699ec6
318 changed files with 5080 additions and 5125 deletions
+3 -3
View File
@@ -32,7 +32,7 @@ namespace Game
foreach (DBQueryBulk.DBQueryRecord record in dbQuery.Queries)
{
DBReply dbReply = new DBReply();
DBReply dbReply = new();
dbReply.TableHash = dbQuery.TableHash;
dbReply.RecordID = record.RecordID;
@@ -69,13 +69,13 @@ namespace Game
{
var hotfixes = Global.DB2Mgr.GetHotfixData();
HotfixConnect hotfixQueryResponse = new HotfixConnect();
HotfixConnect hotfixQueryResponse = new();
foreach (HotfixRecord hotfixRecord in hotfixQuery.Hotfixes)
{
var serverHotfixIndex = hotfixes.IndexOf(hotfixRecord);
if (serverHotfixIndex != -1)
{
HotfixConnect.HotfixData hotfixData = new HotfixConnect.HotfixData();
HotfixConnect.HotfixData hotfixData = new();
hotfixData.Record = hotfixes[serverHotfixIndex];
if (hotfixData.Record.HotfixStatus == HotfixRecord.Status.Valid)
{