diff options
Diffstat (limited to 'pixel-client/src/game.rs')
-rw-r--r-- | pixel-client/src/game.rs | 9 |
1 files changed, 8 insertions, 1 deletions
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) } |