RD_Opts opts = warg->opts;
int start_x = warg->start_x;
int start_y = warg->start_y;
- int w = warg->width;//(warg->width + start_x >= GRID_X) ? GRID_X-1 - start_x: warg->width;
- int h = warg->height;//(warg->height + start_y >= GRID_Y) ? GRID_Y-1 - start_y : warg->height;
+ int w = (warg->width + start_x >= GRID_X) ? GRID_X-1 - start_x: warg->width;
+ int h = (warg->height + start_y >= GRID_Y) ? GRID_Y-1 - start_y : warg->height;
for (warg->iterations = 0; warg->iterations < warg->max_iterations; warg->iterations++)
{