Fixed +/- cmds not being set in the flag manager.

This commit is contained in:
Steve Dudenhoeffer 2007-08-11 13:38:19 +00:00
parent 186519dc92
commit 3f1226e504

View File

@ -161,7 +161,9 @@ done_with_flags:
if (!isalnum(*Command))
//if (!isalnum(*Command))
if (*Command == '"' ||
*Command == '\0')
{
continue;
};
@ -209,6 +211,7 @@ void CFlagManager::LookupOrAdd(const char *Command, int &Flags, AMX *Plugin)
return;
}
int TempFlags=Flags;
if (TempFlags==-1)
{
@ -339,6 +342,7 @@ int CFlagManager::ShouldIAddThisCommand(const AMX *amx, const cell *params, cons
return 0;
}
// If 5th param exists it was compiled after this change was made
// if it does not exist, try our logic at the end of this function
// 5th param being > 0 means explicit yes