summaryrefslogtreecommitdiff
path: root/pixel-client/src
diff options
context:
space:
mode:
Diffstat (limited to 'pixel-client/src')
-rw-r--r--pixel-client/src/game.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/pixel-client/src/game.rs b/pixel-client/src/game.rs
index e299cf09..f34920dc 100644
--- a/pixel-client/src/game.rs
+++ b/pixel-client/src/game.rs
@@ -30,7 +30,7 @@ use hurrycurry_client_lib::{network::sync::Network, spatial_index::SpatialIndex,
use hurrycurry_protocol::{
glam::{IVec2, Vec2},
movement::MovementBase,
- Gamedata, Hand, ItemIndex, ItemLocation, Message, MessageTimeout, PacketC, PacketS,
+ Character, Gamedata, Hand, ItemIndex, ItemLocation, Message, MessageTimeout, PacketC, PacketS,
PlayerClass, PlayerID, RecipeIndex, Score, TileIndex,
};
use log::{info, warn};
@@ -70,7 +70,7 @@ pub struct Player {
items: [Option<Item>; 2],
message_persist: Option<(Message, MessageTimeout)>,
_name: String,
- _character: i32,
+ _character: Character,
_class: PlayerClass,
interact_target_anim: Vec2,
interact_target_anim_pressed: f32,
@@ -90,7 +90,7 @@ impl Game {
id: None,
name: config.username.clone(),
class: PlayerClass::Chef,
- character: 0,
+ character: Character::default(),
position: None,
});