diff options
author | Perttu Ahola <celeron55@gmail.com> | 2012-03-16 16:34:30 +0200 |
---|---|---|
committer | Perttu Ahola <celeron55@gmail.com> | 2012-03-18 13:42:18 +0200 |
commit | 2e90ed07acd295387c0da6c0689d14665b6c125d (patch) | |
tree | 909687023e509db9010d443520835d3b87a2657b /src/client.h | |
parent | 58bed83d03bbe53f8286640fbc33043800e1c318 (diff) | |
download | minetest-2e90ed07acd295387c0da6c0689d14665b6c125d.tar.gz minetest-2e90ed07acd295387c0da6c0689d14665b6c125d.tar.bz2 minetest-2e90ed07acd295387c0da6c0689d14665b6c125d.zip |
Dynamic sky, fog and cloud colors; sun and moon
Diffstat (limited to 'src/client.h')
-rw-r--r-- | src/client.h | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/src/client.h b/src/client.h index 2f24f8813..1903f3aa7 100644 --- a/src/client.h +++ b/src/client.h @@ -256,8 +256,6 @@ public: int getCrackLevel(); void setCrack(int level, v3s16 pos); - u32 getDayNightRatio(); - u16 getHP(); float getAvgRtt() @@ -350,8 +348,6 @@ private: float m_animation_time; int m_crack_level; v3s16 m_crack_pos; - // Received from the server. 0-23999 - u32 m_time_of_day; // 0 <= m_daynight_i < DAYNIGHT_CACHE_COUNT //s32 m_daynight_i; //u32 m_daynight_ratio; @@ -367,6 +363,11 @@ private: bool m_itemdef_received; bool m_nodedef_received; friend class FarMesh; + + // time_of_day speed approximation for old protocol + bool m_time_of_day_set; + float m_last_time_of_day_f; + float m_time_of_day_update_timer; }; #endif // !SERVER |