From d02258224a992c0c8dbc559b26323093c6bc0189 Mon Sep 17 00:00:00 2001 From: SeanOMik Date: Sun, 14 Jul 2024 12:24:13 -0400 Subject: [PATCH] render: fix bug with texture atlas not packing textures in last column --- lyra-game/src/render/texture_atlas.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); }