From 251e3e01c7350d94ea8dec0857e834d1ed84ac3f Mon Sep 17 00:00:00 2001 From: sapier Date: Mon, 22 Jul 2013 18:54:30 +0200 Subject: Add support for setting stepheight for entities --- src/script/common/c_content.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/script/common/c_content.cpp') 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; } /******************************************************************************/ -- cgit v1.2.3