aboutsummaryrefslogtreecommitdiff
path: root/src/content_sao.cpp
diff options
context:
space:
mode:
authorSapier <sapier AT gmx dot net>2015-12-19 16:37:13 +0100
committerEkdohibs <nathanael.courant@laposte.net>2017-05-06 21:18:17 +0200
commit45ab62d6a3d90ab3b97aec88251a766cb5dd1899 (patch)
tree7292388cc626953db1070035976795b7fc4f9f03 /src/content_sao.cpp
parent5ebf8f945050e9c74a3bb6784a0844d1fb68bdff (diff)
downloadminetest-45ab62d6a3d90ab3b97aec88251a766cb5dd1899.tar.gz
minetest-45ab62d6a3d90ab3b97aec88251a766cb5dd1899.tar.bz2
minetest-45ab62d6a3d90ab3b97aec88251a766cb5dd1899.zip
Use stepheight from CAO instead of hardcoded value
Diffstat (limited to 'src/content_sao.cpp')
-rw-r--r--src/content_sao.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/content_sao.cpp b/src/content_sao.cpp
index 81c6902f5..d59f97276 100644
--- a/src/content_sao.cpp
+++ b/src/content_sao.cpp
@@ -797,7 +797,7 @@ PlayerSAO::PlayerSAO(ServerEnvironment *env_, RemotePlayer *player_, u16 peer_id
m_prop.hp_max = PLAYER_MAX_HP;
m_prop.physical = false;
- m_prop.weight = 75;
+ m_prop.weight = PLAYER_DEFAULT_WEIGHT;
m_prop.collisionbox = aabb3f(-1/3.,-1.0,-1/3., 1/3.,1.0,1/3.);
// start of default appearance, this should be overwritten by LUA
m_prop.visual = "upright_sprite";
@@ -811,6 +811,7 @@ PlayerSAO::PlayerSAO(ServerEnvironment *env_, RemotePlayer *player_, u16 peer_id
// end of default appearance
m_prop.is_visible = true;
m_prop.makes_footstep_sound = true;
+ m_prop.stepheight = PLAYER_DEFAULT_STEPHEIGHT;
m_hp = PLAYER_MAX_HP;
}