From 4126cb4fe777efc94e55c1d2397e417ea9332754 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Fri, 12 Sep 2014 22:15:28 +0300 Subject: Remove duplicate packet id CMSG_PLAYER_ATTACK. --- src/net/eathena/playerhandler.cpp | 2 +- src/net/eathena/protocol.h | 1 - src/net/tmwa/playerhandler.cpp | 2 +- src/net/tmwa/protocol.h | 1 - 4 files changed, 2 insertions(+), 4 deletions(-) (limited to 'src/net') diff --git a/src/net/eathena/playerhandler.cpp b/src/net/eathena/playerhandler.cpp index c677cd3f8..52e3d0b6f 100644 --- a/src/net/eathena/playerhandler.cpp +++ b/src/net/eathena/playerhandler.cpp @@ -125,7 +125,7 @@ void PlayerHandler::handleMessage(Net::MessageIn &msg) void PlayerHandler::attack(const int id, const bool keep) const { - MessageOut outMsg(CMSG_PLAYER_ATTACK); + MessageOut outMsg(CMSG_PLAYER_CHANGE_ACT); outMsg.writeInt32(id); if (keep) outMsg.writeInt8(7); diff --git a/src/net/eathena/protocol.h b/src/net/eathena/protocol.h index 38b3171f2..3e501a338 100644 --- a/src/net/eathena/protocol.h +++ b/src/net/eathena/protocol.h @@ -257,7 +257,6 @@ #define CMSG_PLAYER_CHANGE_ACT 0x0871 #define CMSG_PLAYER_RESTART 0x00b2 #define CMSG_PLAYER_EMOTE 0x00bf -#define CMSG_PLAYER_ATTACK 0x0871 #define CMSG_PLAYER_STOP_ATTACK 0x0118 #define CMSG_WHO_REQUEST 0x00c1 diff --git a/src/net/tmwa/playerhandler.cpp b/src/net/tmwa/playerhandler.cpp index d8c7bf356..c4c61bed4 100644 --- a/src/net/tmwa/playerhandler.cpp +++ b/src/net/tmwa/playerhandler.cpp @@ -140,7 +140,7 @@ void PlayerHandler::handleMessage(Net::MessageIn &msg) void PlayerHandler::attack(const int id, const bool keep) const { - MessageOut outMsg(CMSG_PLAYER_ATTACK); + MessageOut outMsg(CMSG_PLAYER_CHANGE_ACT); outMsg.writeInt32(id); if (keep) outMsg.writeInt8(7); diff --git a/src/net/tmwa/protocol.h b/src/net/tmwa/protocol.h index 0b158c342..df5425574 100644 --- a/src/net/tmwa/protocol.h +++ b/src/net/tmwa/protocol.h @@ -228,7 +228,6 @@ #define CMSG_PLAYER_CHANGE_ACT 0x0089 #define CMSG_PLAYER_RESTART 0x00b2 #define CMSG_PLAYER_EMOTE 0x00bf -#define CMSG_PLAYER_ATTACK 0x0089 #define CMSG_PLAYER_STOP_ATTACK 0x0118 #define CMSG_WHO_REQUEST 0x00c1 -- cgit v1.2.3-70-g09d2