diff options
author | metamuffin <metamuffin@disroot.org> | 2024-06-25 16:25:03 +0200 |
---|---|---|
committer | metamuffin <metamuffin@disroot.org> | 2024-06-25 16:25:03 +0200 |
commit | a377bc5c946344229b44e560f06f772b8cc6d5d0 (patch) | |
tree | 1e1a21c22095aa99668e65a49e751cf499618914 | |
parent | f961c1f8d25f479d8b91ac537f3a91ab0adc68b1 (diff) | |
download | hurrycurry-a377bc5c946344229b44e560f06f772b8cc6d5d0.tar hurrycurry-a377bc5c946344229b44e560f06f772b8cc6d5d0.tar.bz2 hurrycurry-a377bc5c946344229b44e560f06f772b8cc6d5d0.tar.zst |
disable speed limit
-rw-r--r-- | server/src/customer/movement.rs | 10 | ||||
-rw-r--r-- | server/src/game.rs | 8 |
2 files changed, 9 insertions, 9 deletions
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 <https://www.gnu.org/licenses/>. - + */ 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 <https://www.gnu.org/licenses/>. - + */ use crate::{ customer::movement::PLAYER_SPEED_LIMIT, |