mirror of
https://github.com/moparisthebest/minetest
synced 2024-12-23 16:08:51 -05:00
Reorder initialization of member variables to make GCC happy
This commit is contained in:
parent
8b02a015eb
commit
b04872d96b
@ -43,6 +43,10 @@ LocalPlayer::LocalPlayer(IGameDef *gamedef):
|
|||||||
last_pitch(0),
|
last_pitch(0),
|
||||||
last_yaw(0),
|
last_yaw(0),
|
||||||
last_keyPressed(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_image(""),
|
||||||
hotbar_selected_image(""),
|
hotbar_selected_image(""),
|
||||||
m_sneak_node(32767,32767,32767),
|
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(32767,32767,32767),
|
||||||
m_old_node_below_type("air"),
|
m_old_node_below_type("air"),
|
||||||
m_need_to_get_new_sneak_node(true),
|
m_need_to_get_new_sneak_node(true),
|
||||||
m_can_jump(false),
|
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))
|
|
||||||
{
|
{
|
||||||
// Initialize hp to 0, so that no hearts will be shown if server
|
// Initialize hp to 0, so that no hearts will be shown if server
|
||||||
// doesn't support health points
|
// doesn't support health points
|
||||||
|
Loading…
Reference in New Issue
Block a user