X-Git-Url: https://git.librecmc.org/?a=blobdiff_plain;f=src%2Fremoteplayer.h;h=965dede508f542a57571fde27d71fc95241b8077;hb=3caad3f3c9e319ca67d63231e8c64b2ace855fff;hp=ee0d625b6b32fbf8e1513251bf4249409d51284d;hpb=9a9ae7d65c0112f3b3107547505553a07d7e20c3;p=oweals%2Fminetest.git diff --git a/src/remoteplayer.h b/src/remoteplayer.h index ee0d625b6..965dede50 100644 --- a/src/remoteplayer.h +++ b/src/remoteplayer.h @@ -134,7 +134,7 @@ public: void setDirty(bool dirty) { m_dirty = true; } - u16 protocol_version; + u16 protocol_version = 0; private: /* @@ -145,21 +145,21 @@ private: void serialize(std::ostream &os); void serializeExtraAttributes(std::string &output); - PlayerSAO *m_sao; - bool m_dirty; + PlayerSAO *m_sao = nullptr; + bool m_dirty = false; static bool m_setting_cache_loaded; static float m_setting_chat_message_limit_per_10sec; static u16 m_setting_chat_message_limit_trigger_kick; - u32 m_last_chat_message_sent; - float m_chat_message_allowance; - u16 m_message_rate_overhead; + u32 m_last_chat_message_sent = std::time(0); + float m_chat_message_allowance = 5.0f; + u16 m_message_rate_overhead = 0; bool m_day_night_ratio_do_override; float m_day_night_ratio; - std::string hud_hotbar_image; - std::string hud_hotbar_selected_image; + std::string hud_hotbar_image = ""; + std::string hud_hotbar_selected_image = ""; std::string m_sky_type; video::SColor m_sky_bgcolor;