cleanup
This commit is contained in:
parent
880993762e
commit
636e9d04e2
10 changed files with 10 additions and 35 deletions
|
@ -75,11 +75,11 @@ impl Machine {
|
|||
if let Some(tile) = self.board.get((x, y).into()) {
|
||||
let px = x as i32 * tile_size + offset.x as i32 + tile_size / 2;
|
||||
let py = y as i32 * tile_size + offset.y as i32 + tile_size / 2;
|
||||
if let Tile::Marble { value, dir } = tile{
|
||||
if let Tile::Marble { value, dir: _ } = tile {
|
||||
d.draw_text(
|
||||
&format!("{value}"),
|
||||
px - tile_size / 2 + 2,
|
||||
py - tile_size / 2 + 2,
|
||||
py - tile_size / 2 + 2,
|
||||
20,
|
||||
Color::MAGENTA,
|
||||
)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue