diff options
author | Andrei Karas <akaras@inbox.ru> | 2013-03-20 13:11:56 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2013-03-20 13:11:56 +0300 |
commit | dc420783ad4ddb176b67754c1298c707ed0cdd26 (patch) | |
tree | b82fa51abafc1c6fd2f50bb3bdc9c38b90e0c974 | |
parent | cedc0666fb1841220d4fc24c8d08cadaf59c230c (diff) | |
download | plus-dc420783ad4ddb176b67754c1298c707ed0cdd26.tar.gz plus-dc420783ad4ddb176b67754c1298c707ed0cdd26.tar.bz2 plus-dc420783ad4ddb176b67754c1298c707ed0cdd26.tar.xz plus-dc420783ad4ddb176b67754c1298c707ed0cdd26.zip |
Fix CMSG to SMSG in some messages.
-rw-r--r-- | src/net/tmwa/protocol.h | 4 | ||||
-rw-r--r-- | src/net/tmwa/questhandler.cpp | 8 |
2 files changed, 6 insertions, 6 deletions
diff --git a/src/net/tmwa/protocol.h b/src/net/tmwa/protocol.h index b0a967271..7464cc877 100644 --- a/src/net/tmwa/protocol.h +++ b/src/net/tmwa/protocol.h @@ -343,8 +343,8 @@ enum #define SMSG_ONLINE_LIST 0x0211 #define SMSG_NPC_COMMAND 0x0212 #define CMSG_SET_STATUS 0x0213 -#define CMSG_QUEST_SET_VAR 0x0214 -#define CMSG_QUEST_PLAYER_VARS 0x0215 +#define SMSG_QUEST_SET_VAR 0x0214 +#define SMSG_QUEST_PLAYER_VARS 0x0215 #define CMSG_SEND_CLIENT_INFO 0x7533 #define SMSG_UPDATE_HOST2 0x7534 diff --git a/src/net/tmwa/questhandler.cpp b/src/net/tmwa/questhandler.cpp index 1a64e95f7..29aafd761 100644 --- a/src/net/tmwa/questhandler.cpp +++ b/src/net/tmwa/questhandler.cpp @@ -43,8 +43,8 @@ QuestHandler::QuestHandler() : { static const uint16_t _messages[] = { - CMSG_QUEST_SET_VAR, - CMSG_QUEST_PLAYER_VARS, + SMSG_QUEST_SET_VAR, + SMSG_QUEST_PLAYER_VARS, 0 }; handledMessages = _messages; @@ -56,11 +56,11 @@ void QuestHandler::handleMessage(Net::MessageIn &msg) BLOCK_START("QuestHandler::handleMessage") switch (msg.getId()) { - case CMSG_QUEST_SET_VAR: + case SMSG_QUEST_SET_VAR: processSetQuestVar(msg); break; - case CMSG_QUEST_PLAYER_VARS: + case SMSG_QUEST_PLAYER_VARS: processPlayerQuests(msg); break; |