diff options
author | Perttu Ahola <celeron55@gmail.com> | 2010-12-13 03:19:12 +0200 |
---|---|---|
committer | Perttu Ahola <celeron55@gmail.com> | 2010-12-13 03:19:12 +0200 |
commit | 571fb14f9480a0fd70d7cfeb0484c9513153c33a (patch) | |
tree | 64601662d351d986fbadaef2c410c90a38241634 /src/server.h | |
parent | 47a593b5197393d8f8cdfe18b1aa46b8bc1f3fb6 (diff) | |
download | minetest-571fb14f9480a0fd70d7cfeb0484c9513153c33a.tar.gz minetest-571fb14f9480a0fd70d7cfeb0484c9513153c33a.tar.bz2 minetest-571fb14f9480a0fd70d7cfeb0484c9513153c33a.zip |
working nicely
Diffstat (limited to 'src/server.h')
-rw-r--r-- | src/server.h | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/src/server.h b/src/server.h index 82e9136b5..273a7d5ef 100644 --- a/src/server.h +++ b/src/server.h @@ -275,7 +275,7 @@ public: u8 pending_serialization_version; RemoteClient(): - m_time_from_building(0.0) + m_time_from_building(9999) //m_num_blocks_in_emerge_queue(0) { peer_id = 0; @@ -450,10 +450,18 @@ private: // When called, connection mutex should be locked RemoteClient* getClient(u16 peer_id); + + /* + Update water pressure. + This also adds suitable nodes to active_nodes. + + environment has to be locked when calling. + */ + void UpdateBlockWaterPressure(MapBlock *block, + core::map<v3s16, MapBlock*> &modified_blocks); // NOTE: If connection and environment are both to be locked, // environment shall be locked first. - JMutex m_env_mutex; Environment m_env; |