aboutsummaryrefslogtreecommitdiff
path: root/pixel-client/src/game.rs
diff options
context:
space:
mode:
authormetamuffin <metamuffin@disroot.org>2024-07-21 22:17:49 +0200
committermetamuffin <metamuffin@disroot.org>2024-07-21 22:17:54 +0200
commit542b0f54760260fad3d27809f3ea81a39608b679 (patch)
treee590fa22af26915907db18c79877c7d5375efaa2 /pixel-client/src/game.rs
parent64e00aad013da92d29851d3e8109a006b4dff8c5 (diff)
downloadhurrycurry-542b0f54760260fad3d27809f3ea81a39608b679.tar
hurrycurry-542b0f54760260fad3d27809f3ea81a39608b679.tar.bz2
hurrycurry-542b0f54760260fad3d27809f3ea81a39608b679.tar.zst
pc: rename chef/customer textures
Diffstat (limited to 'pixel-client/src/game.rs')
-rw-r--r--pixel-client/src/game.rs9
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)
}