bomb: Simplify after previous commit
Signed-off-by: Markus Armbruster <armbru@pond.sub.org>
This commit is contained in:
parent
846399ab7f
commit
c32d52750b
1 changed files with 4 additions and 10 deletions
|
@ -302,17 +302,11 @@ comm_bomb(struct emp_qelem *list, struct sctstr *target)
|
||||||
return;
|
return;
|
||||||
if (!ip)
|
if (!ip)
|
||||||
continue;
|
continue;
|
||||||
|
if (opt_SUPER_BARS && ip->i_uid == I_BAR) {
|
||||||
for (i = I_NONE + 1; i <= I_MAX; i++) {
|
|
||||||
if (opt_SUPER_BARS && i == I_BAR)
|
|
||||||
continue;
|
|
||||||
if (&ichr[i] == ip)
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
if (i > I_MAX)
|
|
||||||
pr("You can't bomb %s!\n", ip->i_name);
|
pr("You can't bomb %s!\n", ip->i_name);
|
||||||
else
|
continue;
|
||||||
break;
|
}
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
for (qp = list->q_forw; qp != list; qp = next) {
|
for (qp = list->q_forw; qp != list; qp = next) {
|
||||||
next = qp->q_forw;
|
next = qp->q_forw;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue