diff options
Diffstat (limited to 'src/powder.c')
| -rw-r--r-- | src/powder.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/powder.c b/src/powder.c index 354c788..e0ddd5c 100644 --- a/src/powder.c +++ b/src/powder.c @@ -2794,6 +2794,7 @@ void clear_area(int area_x, int area_y, int area_w, int area_h) { int cx = 0; int cy = 0; + int i; for (cy=0; cy<area_h; cy++) { for (cx=0; cx<area_w; cx++) @@ -2802,6 +2803,13 @@ void clear_area(int area_x, int area_y, int area_w, int area_h) delete_part(cx+area_x, cy+area_y, 0); } } + for (i=0; i<MAXSIGNS; i++) + { + if (signs[i].x>=area_x && signs[i].x<area_x+area_w && signs[i].y>=area_y && signs[i].y<area_y+area_h) + { + signs[i].text[0] = 0; + } + } } void create_box(int x1, int y1, int x2, int y2, int c, int flags) |
