| 96 | } |
| 97 | |
| 98 | WorldClient::~WorldClient() { |
| 99 | if (m_lightingThread) { |
| 100 | m_stopLightingThread = true; |
| 101 | { |
| 102 | MutexLocker locker(m_lightingMutex); |
| 103 | m_lightingCond.broadcast(); |
| 104 | } |
| 105 | |
| 106 | m_lightingThread.finish(); |
| 107 | } |
| 108 | clearWorld(); |
| 109 | } |
| 110 | |
| 111 | bool WorldClient::inWorld() const { |
| 112 | return m_inWorld; |