aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorPerttu Ahola <celeron55@gmail.com>2012-03-09 20:50:20 +0200
committerPerttu Ahola <celeron55@gmail.com>2012-03-10 17:28:56 +0200
commitd74659254bc5225fbd6454a50c664cc965826ec3 (patch)
tree0b3773efdf9eba7b0dc3a0c41b41cfba5aab25e9 /src
parent55d310b05a2beab69600cd208590f884deb42915 (diff)
downloadminetest-d74659254bc5225fbd6454a50c664cc965826ec3.tar.gz
minetest-d74659254bc5225fbd6454a50c664cc965826ec3.tar.bz2
minetest-d74659254bc5225fbd6454a50c664cc965826ec3.zip
Faster player movement and smaller collision box
Diffstat (limited to 'src')
-rw-r--r--src/player.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/player.cpp b/src/player.cpp
index 068b51790..43a49439b 100644
--- a/src/player.cpp
+++ b/src/player.cpp
@@ -293,8 +293,8 @@ void LocalPlayer::move(f32 dtime, Map &map, f32 pos_max_d,
// This should always apply, otherwise there are glitches
assert(d > pos_max_d);
- float player_radius = BS*0.35;
- float player_height = BS*1.7;
+ float player_radius = BS*0.30;
+ float player_height = BS*1.55;
// Maximum distance over border for sneaking
f32 sneak_max = BS*0.4;
@@ -622,7 +622,7 @@ void LocalPlayer::applyControl(float dtime)
// Random constants
f32 walk_acceleration = 4.0 * BS;
- f32 walkspeed_max = 4.0 * BS;
+ f32 walkspeed_max = 5.0 * BS;
setPitch(control.pitch);
setYaw(control.yaw);