Additional verbose logging.
This commit is contained in:
@@ -21,6 +21,8 @@
|
||||
#include <net/netexception.h>
|
||||
#include <net/socket_msg.h>
|
||||
|
||||
#include <core/loghelper.h>
|
||||
|
||||
#include <string>
|
||||
|
||||
using namespace std;
|
||||
@@ -3140,7 +3142,12 @@ NetPacketGameStart::SetData(const NetPacketGameStart::Data &inData)
|
||||
|
||||
// Basic checking.
|
||||
if (numPlayers < MIN_NUMBER_OF_PLAYERS || numPlayers > MAX_NUMBER_OF_PLAYERS || numPlayers != inData.startData.numberOfPlayers)
|
||||
{
|
||||
// This seems to occur too often.
|
||||
// TODO needs fix.
|
||||
LOG_VERBOSE("Invalid number of players. Slots: " << numPlayers << ", Players: " << inData.startData.numberOfPlayers << ".");
|
||||
throw NetException(__FILE__, __LINE__, ERR_NET_INVALID_PLAYER_COUNT, 0);
|
||||
}
|
||||
|
||||
// Resize the packet so that the data fits in.
|
||||
Resize((u_int16_t)
|
||||
|
||||
Reference in New Issue
Block a user