From c638442e78b953556e7dadd4c0c34cb0c719bbc8 Mon Sep 17 00:00:00 2001 From: Perttu Ahola Date: Thu, 21 Apr 2011 19:35:17 +0300 Subject: Some work-in-progress in hp and mobs and a frightening amount of random fixes. --- src/map.h | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'src/map.h') diff --git a/src/map.h b/src/map.h index 206dc7d7b..1cd021f52 100644 --- a/src/map.h +++ b/src/map.h @@ -287,6 +287,11 @@ public: void removeNodeMetadata(v3s16 p); void nodeMetadataStep(float dtime, core::map &changed_blocks); + + /* + Misc. + */ + core::map *getSectorsPtr(){return &m_sectors;} /* Variables @@ -298,16 +303,13 @@ protected: core::map m_event_receivers; - // Mutex is important because on client map is accessed asynchronously core::map m_sectors; - JMutex m_sector_mutex; + //JMutex m_sector_mutex; // Be sure to set this to NULL when the cached sector is deleted MapSector *m_sector_cache; v2s16 m_sector_cache_p; - //WrapperHeightmap m_hwrapper; - // Queued transforming water nodes UniqueQueue m_transforming_liquid; }; -- cgit v1.2.3