Changeset - r21354:3262ec0460c5
[Not reviewed]
master
0 1 0
peter1138 - 10 years ago 2014-04-08 21:52:53
peter1138@openttd.org
(svn r26451) -Change: Document GroupIsInGroup() function.
1 file changed with 6 insertions and 0 deletions:
0 comments (0 inline, 0 general)
src/group_cmd.cpp
Show inline comments
 
@@ -713,6 +713,12 @@ void RemoveAllGroupsForCompany(const Com
 
}
 

	
 

	
 
/**
 
 * 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 ||
0 comments (0 inline, 0 general)