From 542b0f54760260fad3d27809f3ea81a39608b679 Mon Sep 17 00:00:00 2001 From: metamuffin Date: Sun, 21 Jul 2024 22:17:49 +0200 Subject: pc: rename chef/customer textures --- pixel-client/src/game.rs | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'pixel-client/src/game.rs') diff --git a/pixel-client/src/game.rs b/pixel-client/src/game.rs index c129f991..f8feb1c8 100644 --- a/pixel-client/src/game.rs +++ b/pixel-client/src/game.rs @@ -360,7 +360,14 @@ impl Game { } for p in self.players.values() { - ctx.draw_world(self.misc_textures.player.at(p.movement.position)); + ctx.draw_world( + if p._character >= 0 { + &self.misc_textures.chef + } else { + &self.misc_textures.customer + } + .at(p.movement.position), + ); if let Some(item) = &p.item { item.draw(ctx, &self.item_sprites, &self.misc_textures) } -- cgit v1.2.3-70-g09d2