Skip to content

Commit

Permalink
code compacted
Browse files Browse the repository at this point in the history
  • Loading branch information
podusowski committed Jul 18, 2023
1 parent 0f07622 commit 6b1ce69
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/map.rs
Original file line number Diff line number Diff line change
Expand Up @@ -146,9 +146,7 @@ fn draw_tiles(
let tile_screen_position = painter.clip_rect().center().to_vec2() + tile_projected.to_vec2()
- map_center_projected_position.to_vec2();

let image = if let Some(image) = tiles.at(tile_id) {
image
} else {
let Some(image) = tiles.at(tile_id) else {
return;
};

Expand Down

0 comments on commit 6b1ce69

Please sign in to comment.