From 3e903a611358ef443058410cc578dd3ed4f56d7d Mon Sep 17 00:00:00 2001 From: Eduardo Bart Date: Tue, 10 Jan 2012 01:01:39 -0200 Subject: [PATCH] fix gm actions parse --- src/otclient/net/protocolcodes.h | 12 ++++++------ src/otclient/net/protocolgameparse.cpp | 2 +- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/src/otclient/net/protocolcodes.h b/src/otclient/net/protocolcodes.h index 900f41b4..94f2e1e1 100644 --- a/src/otclient/net/protocolcodes.h +++ b/src/otclient/net/protocolcodes.h @@ -63,7 +63,7 @@ namespace Proto { enum GameServerOpts { GameServerInitGame = 10, - GameServerGMActions = 11, + GameServerGMActions = 11, // deprecated in last tibia GameServerLoginError = 20, GameServerLoginAdvice = 21, GameServerLoginWait = 22, @@ -95,7 +95,7 @@ namespace Proto { GameServerCloseTrade = 127, GameServerAmbient = 130, GameServerGraphicalEffect = 131, - GameServerTextEffect = 132, // absolate in last tibia? + GameServerTextEffect = 132, // deprecated in last tibia GameServerMissleEffect = 133, GameServerMarkCreature = 134, GameServerTrappers = 135, @@ -118,10 +118,10 @@ namespace Proto { GameServerChannels = 171, GameServerOpenChannel = 172, GameServerPrivateChannel = 173, - GameServerRuleViolationChannel = 174, // absolate in last tibia? - GameServerRuleViolationRemove = 175, // absolate in last tibia? - GameServerRuleViolationCancel = 176, // absolate in last tibia? - GameServerRuleViolationLock = 177, // absolate in last tibia? + GameServerRuleViolationChannel = 174, // deprecated in last tibia + GameServerRuleViolationRemove = 175, // deprecated in last tibia + GameServerRuleViolationCancel = 176, // deprecated in last tibia + GameServerRuleViolationLock = 177, // deprecated in last tibia GameServerOpenOwnChannel = 178, GameServerCloseChannel = 179, GameServerMessage = 180, diff --git a/src/otclient/net/protocolgameparse.cpp b/src/otclient/net/protocolgameparse.cpp index f04552aa..cbb8cf87 100644 --- a/src/otclient/net/protocolgameparse.cpp +++ b/src/otclient/net/protocolgameparse.cpp @@ -279,7 +279,7 @@ void ProtocolGame::parsePlayerLogin(InputMessage& msg) void ProtocolGame::parseGMActions(InputMessage& msg) { - for(uint8 i = 0; i < 19; ++i) + for(uint8 i = 0; i < 18; ++i) msg.getU8(); }