position[0] = NUM_OF_FAKE_CORNS - 1 - position[0];
}
-void transform_corn_indexes_into_position(int * position_indexes, struct position * position)
+void transform_corn_indexes_into_position(const int * position_indexes, struct position * position)
{
position->x = FIRST_CORN_X_OFFSET_M + CORNS_X_SPACING_M * position_indexes[0];
position->y = FIRST_CORN_Y_OFFSET_M + CORNS_Y_SPACING_M * position_indexes[1];
memcpy(group->corns, fake_group->corns, NUM_OF_FAKE_CORNS * sizeof(struct corn));
// fill in the rest of the corns
- // get them
struct corn * corn;
for(corn = &group->corns[NUM_OF_FAKE_CORNS]; corn < &group->corns[NUM_OF_ALL_CORNS]; corn++) {
int i;