fix parsing GM actions
This commit is contained in:
parent
3e903a6113
commit
044213c6cd
|
@ -47,6 +47,12 @@ namespace Proto {
|
|||
static const int ClientVersion = PROTOCOL;
|
||||
static const int PicSignature = 0x4E119CBF;
|
||||
|
||||
#if PROTOCOL==860
|
||||
const int NumViolationReasons = 20;
|
||||
#elif PROTOCOL==862
|
||||
const int NumViolationReasons = 19;
|
||||
#endif
|
||||
|
||||
enum OsTypes {
|
||||
OsWindow = 1,
|
||||
OsLinux = 2,
|
||||
|
|
|
@ -279,7 +279,7 @@ void ProtocolGame::parsePlayerLogin(InputMessage& msg)
|
|||
|
||||
void ProtocolGame::parseGMActions(InputMessage& msg)
|
||||
{
|
||||
for(uint8 i = 0; i < 18; ++i)
|
||||
for(uint8 i = 0; i < Proto::NumViolationReasons; ++i)
|
||||
msg.getU8();
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue