diff --git a/lyra-game/src/render/texture_atlas.rs b/lyra-game/src/render/texture_atlas.rs index f312ac9..34955c9 100644 --- a/lyra-game/src/render/texture_atlas.rs +++ b/lyra-game/src/render/texture_atlas.rs @@ -172,7 +172,7 @@ impl SkylinePacker { return None; } - if self.skylines[i].width as u32 > width_left { + if self.skylines[i].width as u32 >= width_left { return Some(y as usize); }