Remove obsolete condition to make static analysis happy.
This commit is contained in:
parent
e169b1941f
commit
29fe0c43df
@ -176,7 +176,7 @@ int Fl_Menu_Item::insert(
|
||||
if (m->flags&FL_SUBMENU && !compare(item, m->text)) break;
|
||||
|
||||
if (!m->text) { /* create a new menu */
|
||||
int n = (index==-1) ? (int) (m-array) : index;
|
||||
int n = (int)(m-array); /* index is not used if label contains a path */
|
||||
array = array_insert(array, msize, n, item, FL_SUBMENU|flags1);
|
||||
msize++;
|
||||
array = array_insert(array, msize, n+1, 0, 0);
|
||||
|
@ -771,7 +771,7 @@ int BlockWindow::handle(int event) {
|
||||
b = 0;
|
||||
|
||||
for (j = 0, c = columns_; !count && j < num_columns_; j ++, c ++)
|
||||
for (k = 0, b = c->blocks; !count && k < c->num_blocks; k ++, b ++)
|
||||
for (k = 0, b = c->blocks; k < c->num_blocks; k ++, b ++)
|
||||
if (mx >= c->x && mx < (c->x + BLOCK_SIZE) &&
|
||||
my >= b->y && my < (b->y + BLOCK_SIZE)) {
|
||||
if (b->bomb) count = bomb(b->color);
|
||||
|
Loading…
Reference in New Issue
Block a user