summaryrefslogtreecommitdiff
path: root/server/examples/client.rs
diff options
context:
space:
mode:
authormetamuffin <metamuffin@disroot.org>2024-07-07 15:25:48 +0200
committermetamuffin <metamuffin@disroot.org>2024-07-07 15:25:48 +0200
commit3ebb7582afc24992674cf6ebc0d6f314569d727f (patch)
tree093d355bb411b051e4e6ba3d80bb061f77b4939b /server/examples/client.rs
parent120eb58c117f251fc548275a7440c2b2492ec6aa (diff)
downloadhurrycurry-3ebb7582afc24992674cf6ebc0d6f314569d727f.tar
hurrycurry-3ebb7582afc24992674cf6ebc0d6f314569d727f.tar.bz2
hurrycurry-3ebb7582afc24992674cf6ebc0d6f314569d727f.tar.zst
transmit boosting state
Diffstat (limited to 'server/examples/client.rs')
-rw-r--r--server/examples/client.rs10
1 files changed, 6 insertions, 4 deletions
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 <https://www.gnu.org/licenses/>.
-
+
*/
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(),
},
_ => {