summaryrefslogtreecommitdiff
path: root/src/script
diff options
context:
space:
mode:
authorsapier <Sapier at GMX dot net>2013-07-22 18:54:30 +0200
committerPilzAdam <pilzadam@minetest.net>2013-07-30 19:48:02 +0200
commit251e3e01c7350d94ea8dec0857e834d1ed84ac3f (patch)
tree4278247af930c66a1012e71d2ed5d65fea137347 /src/script
parentff7c380d0eabf96a8677dfa3a94f0d18191572cf (diff)
downloadminetest-251e3e01c7350d94ea8dec0857e834d1ed84ac3f.tar.gz
minetest-251e3e01c7350d94ea8dec0857e834d1ed84ac3f.tar.bz2
minetest-251e3e01c7350d94ea8dec0857e834d1ed84ac3f.zip
Add support for setting stepheight for entities
Diffstat (limited to 'src/script')
-rw-r--r--src/script/common/c_content.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/script/common/c_content.cpp b/src/script/common/c_content.cpp
index d97264009..ef0544400 100644
--- a/src/script/common/c_content.cpp
+++ b/src/script/common/c_content.cpp
@@ -188,6 +188,8 @@ void read_object_properties(lua_State *L, int index,
getboolfield(L, -1, "is_visible", prop->is_visible);
getboolfield(L, -1, "makes_footstep_sound", prop->makes_footstep_sound);
getfloatfield(L, -1, "automatic_rotate", prop->automatic_rotate);
+ getfloatfield(L, -1, "stepheight", prop->stepheight);
+ prop->stepheight*=BS;
}
/******************************************************************************/