summaryrefslogtreecommitdiff
path: root/src/script/lua_api/l_object.h
diff options
context:
space:
mode:
authorElia Argentieri <elia.argentieri@openmailbox.org>2015-06-25 14:57:10 +0200
committerest31 <MTest31@outlook.com>2015-07-20 05:40:44 +0200
commit5ebb4237e204bfa760313f6f2a46a09dceb9cce0 (patch)
tree2a3b9d6e63ef9809919173d8052fb50474d1458b /src/script/lua_api/l_object.h
parent7bbb9b066a8cc079512ddd3e6b32475309f49fca (diff)
downloadminetest-5ebb4237e204bfa760313f6f2a46a09dceb9cce0.tar.gz
minetest-5ebb4237e204bfa760313f6f2a46a09dceb9cce0.tar.bz2
minetest-5ebb4237e204bfa760313f6f2a46a09dceb9cce0.zip
Added get_player_velocity() method. Fixes #1176
Diffstat (limited to 'src/script/lua_api/l_object.h')
-rw-r--r--src/script/lua_api/l_object.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/script/lua_api/l_object.h b/src/script/lua_api/l_object.h
index 9e4a62058..a4457cc05 100644
--- a/src/script/lua_api/l_object.h
+++ b/src/script/lua_api/l_object.h
@@ -183,6 +183,9 @@ private:
// get_player_name(self)
static int l_get_player_name(lua_State *L);
+ // get_player_velocity(self)
+ static int l_get_player_velocity(lua_State *L);
+
// get_look_dir(self)
static int l_get_look_dir(lua_State *L);