From 41aa862bd6753e9aedbf052a1299735ea1a63c48 Mon Sep 17 00:00:00 2001 From: metamuffin Date: Tue, 16 Jul 2024 18:45:31 +0200 Subject: correct z-order finally --- light-client/src/game.rs | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'light-client/src/game.rs') diff --git a/light-client/src/game.rs b/light-client/src/game.rs index ac5c3571..2692e6fc 100644 --- a/light-client/src/game.rs +++ b/light-client/src/game.rs @@ -86,10 +86,13 @@ impl Game { Sprite::new( renderer .metadata() - .get(&format!("{name}:a")) + .get(&format!("{name}+a")) .copied() - .unwrap_or(Rect::new(0, 0, 32, 24)), - Vec2::ZERO, + .unwrap_or_else(|| { + warn!("no sprite for item {name:?}"); + Rect::new(0, 0, 32, 24) + }), + Vec2::new(0., 0.0), 0.1, ) }) -- cgit v1.2.3-70-g09d2