1
0
mirror of https://github.com/luanti-org/luanti.git synced 2025-10-13 08:35:20 +02:00

Add support for setting stepheight for entities

This commit is contained in:
sapier
2013-07-22 18:54:30 +02:00
committed by PilzAdam
parent ff7c380d0e
commit 251e3e01c7
7 changed files with 12 additions and 5 deletions

View File

@@ -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;
}
/******************************************************************************/