diff options
Diffstat (limited to 'server/src')
-rw-r--r-- | server/src/customer/movement.rs | 1 | ||||
-rw-r--r-- | server/src/game.rs | 3 | ||||
-rw-r--r-- | server/src/protocol.rs | 2 |
3 files changed, 5 insertions, 1 deletions
diff --git a/server/src/customer/movement.rs b/server/src/customer/movement.rs index c6350ebd..bf2752f1 100644 --- a/server/src/customer/movement.rs +++ b/server/src/customer/movement.rs @@ -72,6 +72,7 @@ impl MovementBase { PacketS::Position { pos: self.position, + boosting: false, rot, } } diff --git a/server/src/game.rs b/server/src/game.rs index 13ee5410..d8184c1e 100644 --- a/server/src/game.rs +++ b/server/src/game.rs @@ -274,7 +274,7 @@ impl Game { self.packet_out .push_back(PacketC::RemovePlayer { id: player }) } - PacketS::Position { pos, rot } => { + PacketS::Position { pos, rot, boosting } => { let pid = player; let player = self .players @@ -297,6 +297,7 @@ impl Game { player: pid, pos: player.position, rot, + boosting, }); // if !movement_ok { // bail!( diff --git a/server/src/protocol.rs b/server/src/protocol.rs index 58182917..facfa5ab 100644 --- a/server/src/protocol.rs +++ b/server/src/protocol.rs @@ -47,6 +47,7 @@ pub enum PacketS { Position { pos: Vec2, rot: f32, + boosting: bool, }, Interact { pos: IVec2, @@ -98,6 +99,7 @@ pub enum PacketC { player: PlayerID, pos: Vec2, rot: f32, + boosting: bool, }, MoveItem { from: ItemLocation, |