* Make walls of the area (x1, y1, x2, y2) non diggable/non passwall-able */
| 998 | * Make walls of the area (x1, y1, x2, y2) non diggable/non passwall-able |
| 999 | */ |
| 1000 | staticfn void |
| 1001 | set_wall_property(coordxy x1, coordxy y1, coordxy x2, coordxy y2, int prop) |
| 1002 | { |
| 1003 | coordxy x, y; |
| 1004 | |
| 1005 | x1 = max(x1, 1); |
| 1006 | x2 = min(x2, COLNO - 1); |
| 1007 | y1 = max(y1, 0); |
| 1008 | y2 = min(y2, ROWNO - 1); |
| 1009 | for (y = y1; y <= y2; y++) |
| 1010 | for (x = x1; x <= x2; x++) { |
| 1011 | sel_set_wall_property(x, y, (genericptr_t) &prop); |
| 1012 | } |
| 1013 | } |
| 1014 | |
| 1015 | staticfn void |
| 1016 | remove_boundary_syms(void) |
no test coverage detected