add a selection to the list
| 151 | |
| 152 | // add a selection to the list |
| 153 | void addselection(int x, int y, int xs, int ys, int h) |
| 154 | { |
| 155 | block &s = sels.add(); |
| 156 | if(h == -999 && !OUTBORD(x + xs / 2, y + ys / 2)) h = S(x + xs / 2, y + ys / 2)->floor; |
| 157 | s.x = x; s.y = y; s.xs = xs; s.ys = ys; s.h = h; |
| 158 | if(!correctsel(s)) { sels.drop(); } |
| 159 | } |
| 160 | |
| 161 | // reset all selections |
| 162 | void resetselections() |
no test coverage detected