Update GameMessages.cpp

This commit is contained in:
jadebenn 2023-12-14 07:46:27 -06:00 committed by GitHub
parent 9953255ece
commit 2db76ae589
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -507,11 +507,11 @@ void GameMessages::SendNotifyClientFlagChange(const LWOOBJID& objectID, uint32_t
SEND_PACKET; 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; CBITSTREAM;
CMSGHEADER; CMSGHEADER;
bitStream.Write(objectID); bitStream.Write(objectId);
bitStream.Write(eGameMessageType::HELP); bitStream.Write(eGameMessageType::HELP);
bitStream.Write(help); bitStream.Write(help);
@ -3521,7 +3521,7 @@ void GameMessages::SendClientExitTamingMinigame(LWOOBJID objectId, bool bVolunta
SEND_PACKET; 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; CBITSTREAM;
CMSGHEADER; CMSGHEADER;
@ -3531,7 +3531,7 @@ void GameMessages::SendShowPetActionButton(const LWOOBJID& objectId, const ePetA
bitStream.Write(petAbility); bitStream.Write(petAbility);
bitStream.Write(bShow); 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; SEND_PACKET;
} }