summaryrefslogtreecommitdiff
path: root/src/client.h
diff options
context:
space:
mode:
authorPerttu Ahola <celeron55@gmail.com>2010-12-24 03:08:05 +0200
committerPerttu Ahola <celeron55@gmail.com>2010-12-24 03:08:05 +0200
commitf15670379da5529d38936d0a87a50b0dc72c6e8f (patch)
tree990b86539386bbe4122b530a6367c60f223e55d0 /src/client.h
parent10b06419ab454e8931a9b6502029bc298e8bce35 (diff)
downloadminetest-f15670379da5529d38936d0a87a50b0dc72c6e8f.tar.gz
minetest-f15670379da5529d38936d0a87a50b0dc72c6e8f.tar.bz2
minetest-f15670379da5529d38936d0a87a50b0dc72c6e8f.zip
base stuff for item->object conversion
Diffstat (limited to 'src/client.h')
-rw-r--r--src/client.h34
1 files changed, 1 insertions, 33 deletions
diff --git a/src/client.h b/src/client.h
index 6fb608b84..b29358d93 100644
--- a/src/client.h
+++ b/src/client.h
@@ -101,38 +101,6 @@ struct IncomingPacket
s32 *m_refcount;
};
-// TODO: Remove this. It is not used as supposed.
-class LazyMeshUpdater
-{
-public:
- LazyMeshUpdater(Environment *env)
- {
- m_env = env;
- }
- ~LazyMeshUpdater()
- {
- /*
- TODO: This could be optimized. It will currently
- double-update some blocks.
- */
- for(core::map<v3s16, bool>::Iterator
- i = m_blocks.getIterator();
- i.atEnd() == false; i++)
- {
- v3s16 p = i.getNode()->getKey();
- m_env->updateMeshes(p);
- }
- m_blocks.clear();
- }
- void add(v3s16 p)
- {
- m_blocks.insert(p, true);
- }
-private:
- Environment *m_env;
- core::map<v3s16, bool> m_blocks;
-};
-
class Client : public con::PeerHandler
{
public:
@@ -175,7 +143,7 @@ public:
void ProcessData(u8 *data, u32 datasize, u16 sender_peer_id);
// Returns true if something was received
- bool AsyncProcessPacket(LazyMeshUpdater &mesh_updater);
+ bool AsyncProcessPacket();
bool AsyncProcessData();
void Send(u16 channelnum, SharedBuffer<u8> data, bool reliable);