Skip to content
This repository has been archived by the owner on Feb 29, 2024. It is now read-only.

Commit

Permalink
Update and enable CMSG_VOICE_SESSION_ENABLE
Browse files Browse the repository at this point in the history
Signed-off-by: AlterEgo <admin@projectskyfire.org>
  • Loading branch information
SkyFire committed Oct 29, 2023
1 parent fa0e4e3 commit b0c3e3c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions src/server/game/Handlers/VoiceChatHandler.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,9 @@
void WorldSession::HandleVoiceSessionEnableOpcode(WorldPacket& recvData)
{
SF_LOG_DEBUG("network", "WORLD: CMSG_VOICE_SESSION_ENABLE");
// uint8 isVoiceEnabled, uint8 isMicrophoneEnabled
recvData.read_skip<uint8>();
recvData.read_skip<uint8>();
bool isVoiceEnabled, isMicrophoneEnabled;
isVoiceEnabled = recvData.ReadBit();
isMicrophoneEnabled = recvData.ReadBit();
}

void WorldSession::HandleChannelVoiceOnOpcode(WorldPacket& recvData)
Expand Down
2 changes: 1 addition & 1 deletion src/server/game/Server/Protocol/Opcodes.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -426,6 +426,7 @@ void OpcodeTable::InitializeClientTable()
DEFINE_OPCODE_HANDLER(CMSG_WHO, 0x18A3, STATUS_LOGGEDIN, PROCESS_THREADUNSAFE, &WorldSession::HandleWhoOpcode ); // 5.4.8 18414
DEFINE_OPCODE_HANDLER(CMSG_WORLD_STATE_UI_TIMER_UPDATE, 0x15AB, STATUS_LOGGEDIN, PROCESS_INPLACE, &WorldSession::HandleWorldStateUITimerUpdate ); // 5.4.8 18414
DEFINE_OPCODE_HANDLER(CMSG_CORPSE_QUERY, 0x1FBE, STATUS_LOGGEDIN, PROCESS_THREADUNSAFE, &WorldSession::HandleCorpseQueryOpcode ); // 5.4.8 18414
DEFINE_OPCODE_HANDLER(CMSG_VOICE_SESSION_ENABLE, 0x15A9, STATUS_LOGGEDIN, PROCESS_THREADUNSAFE, &WorldSession::HandleVoiceSessionEnableOpcode ); // 5.4.8 18414
DEFINE_OPCODE_HANDLER(MSG_MOVE_FALL_LAND, 0x08FA, STATUS_LOGGEDIN, PROCESS_THREADSAFE, &WorldSession::HandleMovementOpcodes ); // 5.4.8 18414
DEFINE_OPCODE_HANDLER(MSG_MOVE_HEARTBEAT, 0x01F2, STATUS_LOGGEDIN, PROCESS_THREADSAFE, &WorldSession::HandleMovementOpcodes ); // 5.4.8 18414
DEFINE_OPCODE_HANDLER(MSG_MOVE_JUMP, 0x1153, STATUS_LOGGEDIN, PROCESS_THREADSAFE, &WorldSession::HandleMovementOpcodes ); // 5.4.8 18414
Expand Down Expand Up @@ -518,7 +519,6 @@ void OpcodeTable::InitializeClientTable()
DEFINE_OPCODE_HANDLER(CMSG_SET_SAVED_INSTANCE_EXTEND, 0x0000, STATUS_UNHANDLED, PROCESS_THREADUNSAFE, &WorldSession::HandleSetSavedInstanceExtend);
DEFINE_OPCODE_HANDLER(CMSG_UPDATE_MISSILE_TRAJECTORY, 0x0000, STATUS_UNHANDLED, PROCESS_THREADUNSAFE, &WorldSession::HandleUpdateMissileTrajectory);
DEFINE_OPCODE_HANDLER(CMSG_UPDATE_PROJECTILE_POSITION, 0x0000, STATUS_UNHANDLED, PROCESS_THREADUNSAFE, &WorldSession::HandleUpdateProjectilePosition);
DEFINE_OPCODE_HANDLER(CMSG_VOICE_SESSION_ENABLE, 0x15A9, STATUS_UNHANDLED, PROCESS_THREADUNSAFE, &WorldSession::HandleVoiceSessionEnableOpcode);
DEFINE_OPCODE_HANDLER(CMSG_WARDEN_DATA, 0x1816, STATUS_UNHANDLED, PROCESS_THREADUNSAFE, &WorldSession::HandleWardenDataOpcode);
DEFINE_OPCODE_HANDLER(CMSG_WHOIS, 0x0000, STATUS_UNHANDLED, PROCESS_THREADUNSAFE, &WorldSession::HandleWhoisOpcode);
DEFINE_OPCODE_HANDLER(CMSG_WORLD_TELEPORT, 0x0000, STATUS_UNHANDLED, PROCESS_THREADUNSAFE, &WorldSession::HandleWorldTeleportOpcode);
Expand Down

2 comments on commit b0c3e3c

@AriDEV3
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this function is dead setting memory is pointless can comment out the lines

@SkyFire
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's console spam. I hate console spam.

Please sign in to comment.