Additional verbose logging.

This commit is contained in:
lotodore
2008-03-26 22:37:58 +00:00
parent 1acf4e4187
commit f6f68cab43
2 changed files with 8 additions and 0 deletions
+7
View File
@@ -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)