fix gm actions parse

master
Eduardo Bart 13 years ago
parent bc7f22d395
commit 4f4f306cd7

@ -63,6 +63,7 @@ namespace Proto {
enum GameServerOpts { enum GameServerOpts {
GameServerInitGame = 10, GameServerInitGame = 10,
GameServerGMActions = 11,
GameServerLoginError = 20, GameServerLoginError = 20,
GameServerLoginAdvice = 21, GameServerLoginAdvice = 21,
GameServerLoginWait = 22, GameServerLoginWait = 22,

@ -43,7 +43,7 @@ void ProtocolGame::parseMessage(InputMessage& msg)
case Proto::GameServerInitGame: case Proto::GameServerInitGame:
parsePlayerLogin(msg); parsePlayerLogin(msg);
break; break;
case 0x0B: case Proto::GameServerGMActions:
parseGMActions(msg); parseGMActions(msg);
break; break;
case Proto::GameServerLoginError: case Proto::GameServerLoginError:
@ -279,7 +279,7 @@ void ProtocolGame::parsePlayerLogin(InputMessage& msg)
void ProtocolGame::parseGMActions(InputMessage& msg) void ProtocolGame::parseGMActions(InputMessage& msg)
{ {
for(uint8 i = 0; i < 28; ++i) for(uint8 i = 0; i < 19; ++i)
msg.getU8(); msg.getU8();
} }

Loading…
Cancel
Save