Fixed item collection (token must not be tested by protocols anymore).

This commit is contained in:
hiker 2016-03-23 16:49:17 +11:00
parent 5c4b61a26e
commit d00f2abb0b

View File

@ -44,11 +44,6 @@ bool GameEventsProtocol::notifyEvent(Event* event)
Log::warn("GameEventsProtocol", "Too short message."); Log::warn("GameEventsProtocol", "Too short message.");
return true; return true;
} }
if ( event->getPeer()->getClientServerToken() != data.getUInt32())
{
Log::warn("GameEventsProtocol", "Bad token.");
return true;
}
int8_t type = data.getUInt8(); int8_t type = data.getUInt8();
switch (type) switch (type)
{ {