(svn r26451) -Change: Document GroupIsInGroup() function.

This commit is contained in:
peter1138 2014-04-08 21:52:53 +00:00
parent 567d0ff3a7
commit 8545955424
1 changed files with 6 additions and 0 deletions

View File

@ -713,6 +713,12 @@ void RemoveAllGroupsForCompany(const CompanyID company)
}
/**
* Test if GroupID group is a descendant of (or is) GroupID search
* @param search The GroupID to search in
* @param group The GroupID to search for
* @return True iff group is search or a descendant of search
*/
bool GroupIsInGroup(GroupID search, GroupID group)
{
if (search == NEW_GROUP ||