diff options
author | ShadowNinja <shadowninja@minetest.net> | 2014-04-13 17:47:58 -0400 |
---|---|---|
committer | ShadowNinja <shadowninja@minetest.net> | 2014-04-13 17:47:58 -0400 |
commit | b04872d96b54f0a22a972d3a0f16ccef84972d3f (patch) | |
tree | 7864b5b37e6e192c2b5e324d4e6476b84aa78323 | |
parent | 8b02a015eb7630c25e255ffe400bb714d023609b (diff) | |
download | minetest-b04872d96b54f0a22a972d3a0f16ccef84972d3f.tar.gz minetest-b04872d96b54f0a22a972d3a0f16ccef84972d3f.tar.bz2 minetest-b04872d96b54f0a22a972d3a0f16ccef84972d3f.zip |
Reorder initialization of member variables to make GCC happy
-rw-r--r-- | src/localplayer.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/localplayer.cpp b/src/localplayer.cpp index 264463d38..15a208b8c 100644 --- a/src/localplayer.cpp +++ b/src/localplayer.cpp @@ -43,6 +43,10 @@ LocalPlayer::LocalPlayer(IGameDef *gamedef): last_pitch(0), last_yaw(0), last_keyPressed(0), + camera_mode(0), + eye_offset_first(v3f(0,0,0)), + eye_offset_third(v3f(0,0,0)), + last_animation(NO_ANIM), hotbar_image(""), hotbar_selected_image(""), m_sneak_node(32767,32767,32767), @@ -50,11 +54,7 @@ LocalPlayer::LocalPlayer(IGameDef *gamedef): m_old_node_below(32767,32767,32767), m_old_node_below_type("air"), m_need_to_get_new_sneak_node(true), - m_can_jump(false), - camera_mode(0), - last_animation(NO_ANIM), - eye_offset_first(v3f(0,0,0)), - eye_offset_third(v3f(0,0,0)) + m_can_jump(false) { // Initialize hp to 0, so that no hearts will be shown if server // doesn't support health points |