removed comments from voting - no longer needed

This commit is contained in:
GreYFoX 2011-04-10 15:32:56 +02:00
parent b2c67df7e7
commit b4f05a6772

View file

@ -1371,8 +1371,7 @@ void CGameContext::ConAddVote(IConsole::IResult *pResult, void *pUserData, int C
}
// check for valid option
//if(!pSelf->Console()->LineIsValid(pCommand) || str_length(pCommand) >= VOTE_CMD_LENGTH)
if(!pSelf->Console()->LineIsValid(pResult->GetString(0)) && pResult->GetString(0)[0] != '#')
if(!pSelf->Console()->LineIsValid(pCommand) || str_length(pCommand) >= VOTE_CMD_LENGTH)
{
char aBuf[256];
str_format(aBuf, sizeof(aBuf), "skipped invalid command '%s'", pCommand);