From 240499dc2c766c9d022e6df71e770a116a2c95de Mon Sep 17 00:00:00 2001 From: Perttu Ahola Date: Sat, 18 Dec 2010 17:46:00 +0200 Subject: before daynight mesh cache --- src/client.h | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'src/client.h') 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 m_active_blocks; PacketCounter m_packetcounter; + + // Access these only in main thread. + u32 m_time; + float m_time_counter; }; #endif -- cgit v1.2.3