From 3ebb7582afc24992674cf6ebc0d6f314569d727f Mon Sep 17 00:00:00 2001 From: metamuffin Date: Sun, 7 Jul 2024 15:25:48 +0200 Subject: transmit boosting state --- server/examples/client.rs | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'server/examples/client.rs') diff --git a/server/examples/client.rs b/server/examples/client.rs index 6c757f77..e7863cdb 100644 --- a/server/examples/client.rs +++ b/server/examples/client.rs @@ -1,19 +1,19 @@ /* Undercooked - a game about cooking Copyright 2024 metamuffin - + This program is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free Software Foundation, version 3 of the License only. - + This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more details. - + You should have received a copy of the GNU Affero General Public License along with this program. If not, see . - + */ use std::{ io::{stdin, BufRead, BufReader, Write}, @@ -49,6 +49,7 @@ fn main() { toks.next().unwrap().parse().unwrap(), toks.next().unwrap().parse().unwrap(), ), + boosting: false, rot: 0., }, "i" => PacketS::Position { @@ -56,6 +57,7 @@ fn main() { toks.next().unwrap().parse().unwrap(), toks.next().unwrap().parse().unwrap(), ), + boosting: false, rot: toks.next().unwrap_or("0").parse().unwrap(), }, _ => { -- cgit v1.2.3-70-g09d2