From a377bc5c946344229b44e560f06f772b8cc6d5d0 Mon Sep 17 00:00:00 2001 From: metamuffin Date: Tue, 25 Jun 2024 16:25:03 +0200 Subject: disable speed limit --- server/src/customer/movement.rs | 10 +++++----- server/src/game.rs | 8 ++++---- 2 files changed, 9 insertions(+), 9 deletions(-) (limited to 'server/src') diff --git a/server/src/customer/movement.rs b/server/src/customer/movement.rs index b62149c9..681b2b67 100644 --- a/server/src/customer/movement.rs +++ b/server/src/customer/movement.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 crate::protocol::PacketS; use glam::{IVec2, Vec2}; @@ -21,7 +21,7 @@ use std::collections::HashSet; const PLAYER_SIZE: f32 = 0.4; const PLAYER_SPEED: f32 = 25.; -pub const PLAYER_SPEED_LIMIT: f32 = 10.; +pub const PLAYER_SPEED_LIMIT: f32 = f32::INFINITY; // 10.; pub struct MovementBase { pub position: Vec2, diff --git a/server/src/game.rs b/server/src/game.rs index d5ef1765..c5eb8c9f 100644 --- a/server/src/game.rs +++ b/server/src/game.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 crate::{ customer::movement::PLAYER_SPEED_LIMIT, -- cgit v1.2.3-70-g09d2