Trying to fix game info validation.
This commit is contained in:
1 parent
fb620625b6
commit
d4c1d64eda
2 files changed
+17
-18
No files matched your search
@@ -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;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user