diff options
author | TeTpaAka <TeTpaAka@users.noreply.github.com> | 2015-05-26 14:10:08 +0200 |
---|---|---|
committer | est31 <MTest31@outlook.com> | 2015-05-28 16:46:35 +0200 |
commit | c0335f7d13ee46c6a46d0ceebea96960439ec9fd (patch) | |
tree | 20183ec9aac1dd1dfdd6f193430fb331268b92b0 /src/localplayer.cpp | |
parent | 990a96578f20244626b6b9f67f8e79a7e2e614ea (diff) | |
download | minetest-c0335f7d13ee46c6a46d0ceebea96960439ec9fd.tar.gz minetest-c0335f7d13ee46c6a46d0ceebea96960439ec9fd.tar.bz2 minetest-c0335f7d13ee46c6a46d0ceebea96960439ec9fd.zip |
Add some missing getter functions to the lua API
ObjectRef:
get_properties
get_armor_groups
get_animation
get_attach
get_bone_position
Players:
get_physics_override
hud_get_hotbar_itemcount
hud_get_hotbar_image
hud_get_hotbar_selected_image
get_sky
get_day_night_ratio
get_local_animation
get_eye_offset
Global:
minetest.get_gen_notify
minetest.get_noiseparams
Diffstat (limited to 'src/localplayer.cpp')
-rw-r--r-- | src/localplayer.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/localplayer.cpp b/src/localplayer.cpp index 51d9bdd4b..e533dc605 100644 --- a/src/localplayer.cpp +++ b/src/localplayer.cpp @@ -42,8 +42,6 @@ LocalPlayer::LocalPlayer(IGameDef *gamedef, const char *name): last_pitch(0), last_yaw(0), last_keyPressed(0), - eye_offset_first(v3f(0,0,0)), - eye_offset_third(v3f(0,0,0)), last_animation(NO_ANIM), hotbar_image(""), hotbar_selected_image(""), @@ -59,6 +57,8 @@ LocalPlayer::LocalPlayer(IGameDef *gamedef, const char *name): // Initialize hp to 0, so that no hearts will be shown if server // doesn't support health points hp = 0; + eye_offset_first = v3f(0,0,0); + eye_offset_third = v3f(0,0,0); } LocalPlayer::~LocalPlayer() |