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
+4 -4
View File
@@ -221,7 +221,7 @@ namespace Game
if (bg.IsArena())
return;
PVPMatchStatisticsMessage pvpMatchStatistics = new PVPMatchStatisticsMessage();
PVPMatchStatisticsMessage pvpMatchStatistics = new();
bg.BuildPvPLogDataPacket(out pvpMatchStatistics.Data);
SendPacket(pvpMatchStatistics);
}
@@ -384,7 +384,7 @@ namespace Game
at.SaveToDB();
}
}
BattlefieldStatusNone battlefieldStatus = new BattlefieldStatusNone();
BattlefieldStatusNone battlefieldStatus = new();
battlefieldStatus.Ticket = battlefieldPort.Ticket;
SendPacket(battlefieldStatus);
@@ -581,7 +581,7 @@ namespace Game
[WorldPacketHandler(ClientOpcodes.RequestRatedPvpInfo)]
void HandleRequestRatedPvpInfo(RequestRatedPvpInfo packet)
{
RatedPvpInfo ratedPvpInfo = new RatedPvpInfo();
RatedPvpInfo ratedPvpInfo = new();
SendPacket(ratedPvpInfo);
}
@@ -589,7 +589,7 @@ namespace Game
void HandleGetPVPOptionsEnabled(GetPVPOptionsEnabled packet)
{
// This packet is completely irrelevant, it triggers PVP_TYPES_ENABLED lua event but that is not handled in interface code as of 6.1.2
PVPOptionsEnabled pvpOptionsEnabled = new PVPOptionsEnabled();
PVPOptionsEnabled pvpOptionsEnabled = new();
pvpOptionsEnabled.PugBattlegrounds = true;
SendPacket(new PVPOptionsEnabled());
}