diff options
author | rubenwardy <rw@rubenwardy.com> | 2017-10-29 18:31:50 +0000 |
---|---|---|
committer | SmallJoker <mk939@ymail.com> | 2018-06-03 17:32:00 +0200 |
commit | 416c4535c7e302191903c2a5c174de4f41a62e1c (patch) | |
tree | 147136e7afb4179f004110b5023b1bc74f64f61e /src | |
parent | 73baeb82ef686991dfbfc1a8b915cbe8e657e33e (diff) | |
download | minetest-416c4535c7e302191903c2a5c174de4f41a62e1c.tar.gz minetest-416c4535c7e302191903c2a5c174de4f41a62e1c.tar.bz2 minetest-416c4535c7e302191903c2a5c174de4f41a62e1c.zip |
Fix day_night_ratio_do_override not being initialised server-side
Causes get_day_night_ratio() to return unpredictable results.
Diffstat (limited to 'src')
-rw-r--r-- | src/remoteplayer.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/remoteplayer.h b/src/remoteplayer.h index ee0d625b6..cbb9386ce 100644 --- a/src/remoteplayer.h +++ b/src/remoteplayer.h @@ -156,7 +156,7 @@ private: float m_chat_message_allowance; u16 m_message_rate_overhead; - bool m_day_night_ratio_do_override; + bool m_day_night_ratio_do_override = false; float m_day_night_ratio; std::string hud_hotbar_image; std::string hud_hotbar_selected_image; |