summaryrefslogtreecommitdiffstats
path: root/src/LightingThread.h
diff options
context:
space:
mode:
authorpeterbell10 <peterbell10@live.co.uk>2017-09-22 18:16:47 +0200
committerMattes D <github@xoft.cz>2017-10-21 19:33:22 +0200
commitc54bf40ef96806bf836db205f79e60d016b7eee9 (patch)
tree935dc6f8f18d86f21e6309947d4d09254f4c632a /src/LightingThread.h
parentcWorld: Move Initialization from Start to the constructor. (diff)
downloadcuberite-c54bf40ef96806bf836db205f79e60d016b7eee9.tar
cuberite-c54bf40ef96806bf836db205f79e60d016b7eee9.tar.gz
cuberite-c54bf40ef96806bf836db205f79e60d016b7eee9.tar.bz2
cuberite-c54bf40ef96806bf836db205f79e60d016b7eee9.tar.lz
cuberite-c54bf40ef96806bf836db205f79e60d016b7eee9.tar.xz
cuberite-c54bf40ef96806bf836db205f79e60d016b7eee9.tar.zst
cuberite-c54bf40ef96806bf836db205f79e60d016b7eee9.zip
Diffstat (limited to 'src/LightingThread.h')
-rw-r--r--src/LightingThread.h6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/LightingThread.h b/src/LightingThread.h
index 0208848f6..6c27ff7ba 100644
--- a/src/LightingThread.h
+++ b/src/LightingThread.h
@@ -52,11 +52,9 @@ class cLightingThread :
public:
- cLightingThread(void);
+ cLightingThread(cWorld & a_World);
virtual ~cLightingThread() override;
- bool Start(cWorld * a_World);
-
void Stop(void);
/** Queues the entire chunk for lighting.
@@ -94,7 +92,7 @@ protected:
typedef std::list<cChunkStay *> cChunkStays;
- cWorld * m_World;
+ cWorld & m_World;
/** The mutex to protect m_Queue and m_PendingQueue */
cCriticalSection m_CS;