remove duplicate code
Here, `then` clause and `else` clause is identical.
This commit is contained in:
15
src/role.c
15
src/role.c
@@ -1388,17 +1388,10 @@ root_plselection_prompt(
|
||||
if (alignnum != ROLE_NONE && alignnum != ROLE_RANDOM
|
||||
&& ok_align(rolenum, racenum, gendnum, alignnum)) {
|
||||
/* if race specified, and multiple choice of alignments for it */
|
||||
if ((racenum >= 0) && (aligncount > 1)) {
|
||||
if (donefirst)
|
||||
Strcat(buf, " ");
|
||||
Strcat(buf, aligns[alignnum].adj);
|
||||
donefirst = TRUE;
|
||||
} else {
|
||||
if (donefirst)
|
||||
Strcat(buf, " ");
|
||||
Strcat(buf, aligns[alignnum].adj);
|
||||
donefirst = TRUE;
|
||||
}
|
||||
if (donefirst)
|
||||
Strcat(buf, " ");
|
||||
Strcat(buf, aligns[alignnum].adj);
|
||||
donefirst = TRUE;
|
||||
} else {
|
||||
/* in case we got here by failing the ok_align() test */
|
||||
if (alignnum != ROLE_RANDOM)
|
||||
|
||||
Reference in New Issue
Block a user