Skip to content

Commit

Permalink
rename
Browse files Browse the repository at this point in the history
  • Loading branch information
podusowski committed Nov 5, 2023
1 parent c02b655 commit a2f80b8
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions walkers/src/map.rs
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ impl Widget for Map<'_, '_> {

if let Some(tiles) = self.tiles {
let mut meshes = Default::default();
draw_tiles(
flood_fill_tiles(
&painter,
map_center.tile_id(zoom),
map_center.project(zoom),
Expand Down Expand Up @@ -325,7 +325,7 @@ impl MapMemory {
}

/// Use simple [flood fill algorithm](https://en.wikipedia.org/wiki/Flood_fill) to draw tiles on the map.
fn draw_tiles(
fn flood_fill_tiles(
painter: &Painter,
tile_id: TileId,
map_center_projected_position: Pos2,
Expand Down Expand Up @@ -358,7 +358,7 @@ fn draw_tiles(
.iter()
.flatten()
{
draw_tiles(
flood_fill_tiles(
painter,
*coordinates,
map_center_projected_position,
Expand Down

0 comments on commit a2f80b8

Please sign in to comment.