forked from github/server
indentation only
This commit is contained in:
parent
a7a0ddfbf7
commit
3e843afb99
1 changed files with 8 additions and 8 deletions
|
@ -163,18 +163,18 @@ set_group(struct unit * u, struct group * g)
|
||||||
boolean
|
boolean
|
||||||
join_group(unit * u, const char * name)
|
join_group(unit * u, const char * name)
|
||||||
{
|
{
|
||||||
group * g = NULL;
|
group * g = NULL;
|
||||||
|
|
||||||
if (name && name[0]) {
|
if (name && name[0]) {
|
||||||
g = find_groupbyname(u->faction->groups, name);
|
g = find_groupbyname(u->faction->groups, name);
|
||||||
if (g==NULL) {
|
if (g==NULL) {
|
||||||
g = new_group(u->faction, name, ++maxgid);
|
g = new_group(u->faction, name, ++maxgid);
|
||||||
init_group(u->faction, g);
|
init_group(u->faction, g);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
set_group(u, g);
|
set_group(u, g);
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
|
|
Loading…
Reference in a new issue