From 2db76ae58928bb49667f391206b814494665afc2 Mon Sep 17 00:00:00 2001 From: jadebenn Date: Thu, 14 Dec 2023 07:46:27 -0600 Subject: [PATCH] Update GameMessages.cpp --- dGame/dGameMessages/GameMessages.cpp | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/dGame/dGameMessages/GameMessages.cpp b/dGame/dGameMessages/GameMessages.cpp index 821f9b6f..da93de21 100644 --- a/dGame/dGameMessages/GameMessages.cpp +++ b/dGame/dGameMessages/GameMessages.cpp @@ -507,14 +507,14 @@ void GameMessages::SendNotifyClientFlagChange(const LWOOBJID& objectID, uint32_t SEND_PACKET; } -void GameMessages::SendHelp(const LWOOBJID& objectID, const eHelpType help, const SystemAddress& sysAddr) { +void GameMessages::SendHelp(const LWOOBJID& objectId, const eHelpType help, const SystemAddress& sysAddr) { CBITSTREAM; CMSGHEADER; - - bitStream.Write(objectID); - bitStream.Write(eGameMessageType::HELP); - bitStream.Write(help); - + + bitStream.Write(objectId); + bitStream.Write(eGameMessageType::HELP); + bitStream.Write(help); + SEND_PACKET; } @@ -3521,7 +3521,7 @@ void GameMessages::SendClientExitTamingMinigame(LWOOBJID objectId, bool bVolunta SEND_PACKET; } -void GameMessages::SendShowPetActionButton(const LWOOBJID& objectId, const ePetAbilityType petAbility, bool bShow, const SystemAddress& sysAddr) { +void GameMessages::SendShowPetActionButton(const LWOOBJID& objectId, const ePetAbilityType petAbility, const bool bShow, const SystemAddress& sysAddr) { CBITSTREAM; CMSGHEADER; @@ -3531,7 +3531,7 @@ void GameMessages::SendShowPetActionButton(const LWOOBJID& objectId, const ePetA bitStream.Write(petAbility); bitStream.Write(bShow); - if (sysAddr == UNASSIGNED_SYSTEM_ADDRESS) SEND_PACKET_BROADCAST; + if (sysAddr == UNASSIGNED_SYSTEM_ADDRESS) SEND_PACKET_BROADCAST; // TODO: Don't think this should ever be broadcasted, need to confirm SEND_PACKET; }