create_box improvements

Boxes now have sharp corners - they fill only the specified rectangle and not 1 pixel extra
on all sides.
This commit is contained in:
jacksonmj 2011-02-16 21:19:21 +00:00
parent 29a63795dd
commit 914cf28fa7

View File

@ -2712,7 +2712,7 @@ void create_box(int x1, int y1, int x2, int y2, int c)
} }
for (j=y1; j<=y2; j++) for (j=y1; j<=y2; j++)
for (i=x1; i<=x2; i++) for (i=x1; i<=x2; i++)
create_parts(i, j, 1, 1, c); create_parts(i, j, 0, 0, c);
} }
int flood_parts(int x, int y, int c, int cm, int bm) int flood_parts(int x, int y, int c, int cm, int bm)