fix gm actions parse

This commit is contained in:
Eduardo Bart 2012-01-10 00:55:56 -02:00
parent bc7f22d395
commit 4f4f306cd7
2 changed files with 3 additions and 2 deletions

View File

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

View File

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