| 99 | } |
| 100 | |
| 101 | staticfn void |
| 102 | getpos_getvalids_selection( |
| 103 | struct selectionvar *sel, |
| 104 | boolean (*validf)(coordxy, coordxy)) |
| 105 | { |
| 106 | coordxy x, y; |
| 107 | |
| 108 | if (!sel || !validf) |
| 109 | return; |
| 110 | |
| 111 | for (x = 1; x < sel->wid; x++) |
| 112 | for (y = 0; y < sel->hei; y++) |
| 113 | if ((*validf)(x, y)) |
| 114 | selection_setpoint(x, y, sel, 1); |
| 115 | } |
| 116 | |
| 117 | static const char *const gloc_descr[NUM_GLOCS][4] = { |
| 118 | { "any monsters", "monster", "next/previous monster", "monsters" }, |
no test coverage detected