summaryrefslogtreecommitdiff
path: root/src/content_sao.cpp
diff options
context:
space:
mode:
authorparamat <mat.gregory@virginmedia.com>2017-05-07 01:48:42 +0100
committerparamat <mat.gregory@virginmedia.com>2017-05-07 06:10:13 +0100
commit2d5bd7f414f8b8107254490af2360d6e29f1a8d2 (patch)
tree53f4ebba5f4d4a0c24098a2e51174962116be59c /src/content_sao.cpp
parentd0678948165768472fc940c03e78cba787f49ea5 (diff)
downloadminetest-2d5bd7f414f8b8107254490af2360d6e29f1a8d2.tar.gz
minetest-2d5bd7f414f8b8107254490af2360d6e29f1a8d2.tar.bz2
minetest-2d5bd7f414f8b8107254490af2360d6e29f1a8d2.zip
Player properties: Set correct default collisionbox
Recent commit b6f4a9c7e1a4f0bac66fd6f6ff844425ac775975 removed a hardcoded player collisionbox which resulted on falling back to an incorrect default. This stopped players walking through 2-node high spaces and made the player slightly wider. Improve docs for custom player collisionbox feature and reformat nearby lines.
Diffstat (limited to 'src/content_sao.cpp')
-rw-r--r--src/content_sao.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/content_sao.cpp b/src/content_sao.cpp
index 20b0396cd..f1a4df056 100644
--- a/src/content_sao.cpp
+++ b/src/content_sao.cpp
@@ -798,7 +798,7 @@ PlayerSAO::PlayerSAO(ServerEnvironment *env_, RemotePlayer *player_, u16 peer_id
m_prop.hp_max = PLAYER_MAX_HP;
m_prop.physical = false;
m_prop.weight = PLAYER_DEFAULT_WEIGHT;
- m_prop.collisionbox = aabb3f(-1/3.,-1.0,-1/3., 1/3.,1.0,1/3.);
+ m_prop.collisionbox = aabb3f(-0.3f, -1.0f, -0.3f, 0.3f, 0.75f, 0.3f);
// start of default appearance, this should be overwritten by LUA
m_prop.visual = "upright_sprite";
m_prop.visual_size = v2f(1, 2);