mirror of
https://github.com/zhenyan121/Cubed.git
synced 2026-08-09 02:07:04 +08:00
feat(gameplay): integrate network client and thread-safe player pos
This commit is contained in:
@@ -19,8 +19,10 @@ ServerWorld::~ServerWorld() {
|
||||
stop_server_thread();
|
||||
wait_all_chunk_tasks();
|
||||
stop_thread_pool();
|
||||
|
||||
m_chunks.clear();
|
||||
{
|
||||
std::lock_guard lock(m_chunks_mutex);
|
||||
m_chunks.clear();
|
||||
}
|
||||
}
|
||||
|
||||
void ServerWorld::wait_all_chunk_tasks() {
|
||||
|
||||
Reference in New Issue
Block a user