stop cloning strings for every tile texture name lookup, general clippy fixes
This commit is contained in:
parent
499aad7898
commit
6d8bfa03b0
3 changed files with 108 additions and 67 deletions
|
@ -263,7 +263,7 @@ impl Board {
|
|||
if texname.is_empty() {
|
||||
continue;
|
||||
}
|
||||
let texture = textures.get(&texname);
|
||||
let texture = textures.get(texname);
|
||||
draw_scaled_texture(d, texture, px, py, scale);
|
||||
} else {
|
||||
d.draw_rectangle(px, py, tile_size, tile_size, Color::new(0, 0, 0, 80));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue