From 24c4b7c68d283a4d1de72a3eb68f1268f1fe34e3 Mon Sep 17 00:00:00 2001 From: Perttu Ahola Date: Sat, 27 Nov 2010 17:18:34 +0200 Subject: Working version before block send priorization update --- src/mapblockobject.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/mapblockobject.h') diff --git a/src/mapblockobject.h b/src/mapblockobject.h index 1939cc896..15409bbd7 100644 --- a/src/mapblockobject.h +++ b/src/mapblockobject.h @@ -879,6 +879,12 @@ public: // origin is relative to block void getObjects(v3f origin, f32 max_d, core::array &dest); + + // Number of objects + s32 getCount() + { + return m_objects.size(); + } private: JMutex m_mutex; -- cgit v1.2.3