if (i >= WAYPOINTS_NBX && j >= WAYPOINTS_NBY)
return -1;
*x = (OFFSET_CORN_X + i*STEP_CORN_X);
- *y = COLOR_Y(OFFSET_CORN_Y + j*STEP_CORN_Y);
+ if (i&1)
+ *y = COLOR_Y(OFFSET_CORN_Y + j*STEP_CORN_Y + STEP_CORN_Y/2);
+ else
+ *y = COLOR_Y(OFFSET_CORN_Y + j*STEP_CORN_Y);
return 0;
}
/* tomato */
idx = ijcoord_to_tomato_idx(i, j);
if (idx >= 0) {
- printf("%d %d\n", i, j);
wp->type = WP_TYPE_TOMATO;
wp->present = 1;
wp->tomato.idx = idx;