From eb68504dc1df465e2118f3bf2dad9d05a021187c Mon Sep 17 00:00:00 2001 From: KnopersPL Date: Sun, 25 Aug 2013 12:20:54 +0200 Subject: [PATCH 1/2] Update protocolgameparse.cpp Fix the slow animation move effect, some opcodes error and logging in as GM --- src/client/protocolgameparse.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/client/protocolgameparse.cpp b/src/client/protocolgameparse.cpp index 263a8f3c..647a81d6 100644 --- a/src/client/protocolgameparse.cpp +++ b/src/client/protocolgameparse.cpp @@ -385,7 +385,7 @@ void ProtocolGame::parseGMActions(const InputMessagePtr& msg) int numViolationReasons; - if(g_game.getProtocolVersion() >= 854) + if(g_game.getProtocolVersion() >= 850) numViolationReasons = 20; else numViolationReasons = 32; @@ -535,7 +535,7 @@ void ProtocolGame::parseTileAddThing(const InputMessagePtr& msg) Position pos = getPosition(msg); int stackPos = -1; - if(g_game.getProtocolVersion() >= 854) + if(g_game.getProtocolVersion() >= 850) stackPos = msg->getU8(); ThingPtr thing = getThing(msg); From 1f914351bbed796a934efbab82409e60d5e139c3 Mon Sep 17 00:00:00 2001 From: KnopersPL Date: Sun, 25 Aug 2013 12:24:18 +0200 Subject: [PATCH 2/2] Update protocolcodes.cpp Fix for server messages on 850 --- src/client/protocolcodes.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/client/protocolcodes.cpp b/src/client/protocolcodes.cpp index 41d19ec2..29eff5e9 100644 --- a/src/client/protocolcodes.cpp +++ b/src/client/protocolcodes.cpp @@ -57,7 +57,7 @@ void buildMessageModesMap(int version) { messageModesMap[Otc::MessageFailure] = 20; messageModesMap[Otc::MessageBlue] = 21; messageModesMap[Otc::MessageRed] = 22; - } else if(version >= 854) { + } else if(version >= 850) { messageModesMap[Otc::MessageNone] = 0; messageModesMap[Otc::MessageSay] = 1; messageModesMap[Otc::MessageWhisper] = 2;