diff options
author | Perttu Ahola <celeron55@gmail.com> | 2010-12-18 17:46:00 +0200 |
---|---|---|
committer | Perttu Ahola <celeron55@gmail.com> | 2010-12-18 17:46:00 +0200 |
commit | 240499dc2c766c9d022e6df71e770a116a2c95de (patch) | |
tree | 3ae7c46b2ab20c226afb0d1ec5c6bddc80f33d48 /src/client.h | |
parent | 15a43c5ed02130f1b1e07a0385530da197b0c846 (diff) | |
download | minetest-240499dc2c766c9d022e6df71e770a116a2c95de.tar.gz minetest-240499dc2c766c9d022e6df71e770a116a2c95de.tar.bz2 minetest-240499dc2c766c9d022e6df71e770a116a2c95de.zip |
before daynight mesh cache
Diffstat (limited to 'src/client.h')
-rw-r--r-- | src/client.h | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/client.h b/src/client.h index 70996cfef..413a936c6 100644 --- a/src/client.h +++ b/src/client.h @@ -133,7 +133,7 @@ public: i.atEnd() == false; i++) { v3s16 p = i.getNode()->getKey(); - m_env->getMap().updateMeshes(p); + m_env->updateMeshes(p); } m_blocks.clear(); } @@ -236,6 +236,8 @@ public: // Prints a line or two of info void printDebugInfo(std::ostream &os); + + float getDaylightRatio(); private: @@ -284,6 +286,10 @@ private: core::map<v3s16, bool> m_active_blocks; PacketCounter m_packetcounter; + + // Access these only in main thread. + u32 m_time; + float m_time_counter; }; #endif |