Trying to fix game info validation.

This commit is contained in:
lotodore
2013-01-01 00:27:49 +01:00
parent fb620625b6
commit d4c1d64eda
2 changed files with 17 additions and 18 deletions
+2 -3
View File
@@ -1145,7 +1145,7 @@ NetPacketValidator::ValidateErrorMessage(const NetPacket &packet)
bool
NetPacketValidator::ValidateGameInfo(const NetGameInfo &gameInfo)
{
/* bool retVal = false;
bool retVal = false;
if (VALIDATE_STRING_SIZE(gameInfo.gamename(), 1, 64)
&& VALIDATE_INT_RANGE(gameInfo.maxnumplayers(), 2, 10)
&& (!gameInfo.has_raiseeveryhands() || VALIDATE_INT_RANGE(gameInfo.raiseeveryhands(), 1, 1000))
@@ -1161,7 +1161,6 @@ NetPacketValidator::ValidateGameInfo(const NetGameInfo &gameInfo)
retVal = true;
}
return retVal;*/
return true;
return retVal;
}