summaryrefslogtreecommitdiffstats
path: root/src/ChunkSender.cpp
diff options
context:
space:
mode:
authorMattes D <github@xoft.cz>2015-07-31 16:49:10 +0200
committerMattes D <github@xoft.cz>2015-07-31 16:49:10 +0200
commit6e4122e551eeb41d3e950b363dd837d5586fe560 (patch)
treeb5ee221d8a8e63c7d3b7868da1db19bf717a6ffd /src/ChunkSender.cpp
parentMerge pull request #2400 from cuberite/OffloadBadChunks (diff)
downloadcuberite-6e4122e551eeb41d3e950b363dd837d5586fe560.tar
cuberite-6e4122e551eeb41d3e950b363dd837d5586fe560.tar.gz
cuberite-6e4122e551eeb41d3e950b363dd837d5586fe560.tar.bz2
cuberite-6e4122e551eeb41d3e950b363dd837d5586fe560.tar.lz
cuberite-6e4122e551eeb41d3e950b363dd837d5586fe560.tar.xz
cuberite-6e4122e551eeb41d3e950b363dd837d5586fe560.tar.zst
cuberite-6e4122e551eeb41d3e950b363dd837d5586fe560.zip
Diffstat (limited to 'src/ChunkSender.cpp')
-rw-r--r--src/ChunkSender.cpp17
1 files changed, 14 insertions, 3 deletions
diff --git a/src/ChunkSender.cpp b/src/ChunkSender.cpp
index de886b497..674291c73 100644
--- a/src/ChunkSender.cpp
+++ b/src/ChunkSender.cpp
@@ -23,7 +23,7 @@
// cNotifyChunkSender:
-/// Callback that can be used to notify chunk sender upon another chunkcoord notification
+/** Callback that can be used to notify chunk sender upon another chunkcoord notification */
class cNotifyChunkSender :
public cChunkCoordCallback
{
@@ -43,11 +43,22 @@ class cNotifyChunkSender :
cChunkSender & m_ChunkSender;
cWorld & m_World;
+
public:
- cNotifyChunkSender(cChunkSender & a_ChunkSender, cWorld & a_World) : m_ChunkSender(a_ChunkSender), m_World(a_World) {}
+ cNotifyChunkSender(cChunkSender & a_ChunkSender, cWorld & a_World):
+ m_ChunkSender(a_ChunkSender),
+ m_World(a_World)
+ {
+ }
+};
-};
+
+
+
+
+////////////////////////////////////////////////////////////////////////////////
+// cChunkSender:
cChunkSender::cChunkSender(cWorld & a_World) :
super("ChunkSender"),