Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- void conect_dots(t_map *map, t_point *point)
- {
- int i;
- int j;
- int row;
- int prev_y;
- i = 0;
- j = 0;
- row = 0;
- while (i < map->map_sum)
- {
- if (i % map->map_width == 0)
- row++;
- j = i % map->map_width;
- prev_y = j + (row * map->map_width);
- if (row < map->map_height)
- drawline(map, point, i, prev_y);
- if (j != 0 && i != 0)
- drawline(map, point, i, i - 1);
- i++;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement