mirror of
https://github.com/mangosfour/server.git
synced 2025-12-14 16:37:01 +00:00
Fix.
This commit is contained in:
parent
3c04496624
commit
a93b7936f5
2 changed files with 10 additions and 10 deletions
|
|
@ -270,9 +270,8 @@ void WorldSession::HandleLogoutRequestOpcode( WorldPacket & /*recv_data*/ )
|
|||
//...is jumping ...is falling
|
||||
GetPlayer()->m_movementInfo.HasMovementFlag(MovementFlags(MOVEFLAG_FALLING | MOVEFLAG_FALLINGFAR)))
|
||||
{
|
||||
WorldPacket data( SMSG_LOGOUT_RESPONSE, (2+4) ) ;
|
||||
data << (uint8)0xC;
|
||||
data << uint32(0);
|
||||
WorldPacket data( SMSG_LOGOUT_RESPONSE, 5 );
|
||||
data << uint32(1);
|
||||
data << uint8(0);
|
||||
SendPacket( &data );
|
||||
LogoutRequest(0);
|
||||
|
|
|
|||
|
|
@ -41,7 +41,8 @@ enum SocialFlag
|
|||
{
|
||||
SOCIAL_FLAG_FRIEND = 0x01,
|
||||
SOCIAL_FLAG_IGNORED = 0x02,
|
||||
SOCIAL_FLAG_MUTED = 0x04 // guessed
|
||||
SOCIAL_FLAG_MUTED = 0x04, // guessed
|
||||
SOCIAL_FLAG_RAF = 0x08 // Recruit-A-Friend
|
||||
};
|
||||
|
||||
struct FriendInfo
|
||||
|
|
@ -80,13 +81,13 @@ typedef std::map<uint32, PlayerSocial> SocialMap;
|
|||
/// Results of friend related commands
|
||||
enum FriendsResult
|
||||
{
|
||||
FRIEND_DB_ERROR = 0x00,
|
||||
FRIEND_DB_ERROR = 0x00, // ERR_FRIEND_NOT_FOUND
|
||||
FRIEND_LIST_FULL = 0x01,
|
||||
FRIEND_ONLINE = 0x02,
|
||||
FRIEND_OFFLINE = 0x03,
|
||||
FRIEND_NOT_FOUND = 0x04,
|
||||
FRIEND_NOT_FOUND = 0x04, // ERR_FRIEND_NOT_FOUND
|
||||
FRIEND_REMOVED = 0x05,
|
||||
FRIEND_ADDED_ONLINE = 0x06,
|
||||
FRIEND_ADDED_ONLINE = 0x06, // ERR_FRIEND_ADDED_S
|
||||
FRIEND_ADDED_OFFLINE = 0x07,
|
||||
FRIEND_ALREADY = 0x08,
|
||||
FRIEND_SELF = 0x09,
|
||||
|
|
@ -104,13 +105,13 @@ enum FriendsResult
|
|||
FRIEND_MUTE_ALREADY = 0x15,
|
||||
FRIEND_MUTE_ADDED = 0x16,
|
||||
FRIEND_MUTE_REMOVED = 0x17,
|
||||
FRIEND_MUTE_AMBIGUOUS = 0x18, // That name is ambiguous, type more of the player's server name
|
||||
FRIEND_UNK7 = 0x19, // no message at client
|
||||
FRIEND_MUTE_AMBIGUOUS = 0x18, // ERR_VOICE_IGNORE_AMBIGUOUS
|
||||
FRIEND_UNK7 = 0x19, // ERR_MAX_VALUE (nothing is showed)
|
||||
FRIEND_UNKNOWN = 0x1A // Unknown friend response from server
|
||||
};
|
||||
|
||||
#define SOCIALMGR_FRIEND_LIMIT 50
|
||||
#define SOCIALMGR_IGNORE_LIMIT 25
|
||||
#define SOCIALMGR_IGNORE_LIMIT 50
|
||||
|
||||
class PlayerSocial
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue