From dc420783ad4ddb176b67754c1298c707ed0cdd26 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Wed, 20 Mar 2013 13:11:56 +0300 Subject: Fix CMSG to SMSG in some messages. --- src/net/tmwa/protocol.h | 4 ++-- src/net/tmwa/questhandler.cpp | 8 ++++---- 2 files changed, 6 insertions(+), 6 deletions(-) (limited to 'src/net') 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; -- cgit v1.2.3-70-g09d2