Code quality fix

This commit is contained in:
Michal Sroczynski 2023-08-02 09:28:48 +02:00 committed by Isse
parent 1301761445
commit 0d4fc62468

View File

@ -131,7 +131,7 @@ impl Structure for GiantTree {
(branch_direction * branch.get_leaf_radius()).map(|e| e.round() as i32);
let pos = self.wpos + branch_end.as_() + displacement;
if rand::thread_rng().gen_range(0..100) < 7 {
painter.sprite(pos.map(|e| e as i32), SpriteKind::Ironwood);
painter.sprite(pos.map(|e| e), SpriteKind::Ironwood);
}
}
true