aboutsummaryrefslogtreecommitdiff
path: root/src/remoteplayer.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/remoteplayer.h')
-rw-r--r--src/remoteplayer.h16
1 files changed, 8 insertions, 8 deletions
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;