diff options
author | Tiger Wang <ziwei.tiger@outlook.com> | 2020-09-12 21:43:18 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-09-12 21:43:18 +0200 |
commit | 198407807f1241ea2b06179bcc036f9373c7258e (patch) | |
tree | f0e4f690aaa1d35fa43115c8aa102b7f127ee70a /src/ClientHandle.cpp | |
parent | Use tracing for explosions (#4845) (diff) | |
download | cuberite-198407807f1241ea2b06179bcc036f9373c7258e.tar cuberite-198407807f1241ea2b06179bcc036f9373c7258e.tar.gz cuberite-198407807f1241ea2b06179bcc036f9373c7258e.tar.bz2 cuberite-198407807f1241ea2b06179bcc036f9373c7258e.tar.lz cuberite-198407807f1241ea2b06179bcc036f9373c7258e.tar.xz cuberite-198407807f1241ea2b06179bcc036f9373c7258e.tar.zst cuberite-198407807f1241ea2b06179bcc036f9373c7258e.zip |
Diffstat (limited to '')
-rw-r--r-- | src/ClientHandle.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/ClientHandle.cpp b/src/ClientHandle.cpp index 098a67afd..690998711 100644 --- a/src/ClientHandle.cpp +++ b/src/ClientHandle.cpp @@ -507,7 +507,7 @@ bool cClientHandle::StreamNextChunk(void) // Unloaded chunk found -> Send it to the client. Lock.Unlock(); - StreamChunk(ChunkX, ChunkZ, ((Range <= 2) ? cChunkSender::E_CHUNK_PRIORITY_HIGH : cChunkSender::E_CHUNK_PRIORITY_MEDIUM)); + StreamChunk(ChunkX, ChunkZ, ((Range <= 2) ? cChunkSender::Priority::Critical : cChunkSender::Priority::Medium)); return false; } } @@ -545,7 +545,7 @@ bool cClientHandle::StreamNextChunk(void) // Unloaded chunk found -> Send it to the client. Lock.Unlock(); - StreamChunk(Coords.m_ChunkX, Coords.m_ChunkZ, cChunkSender::E_CHUNK_PRIORITY_LOW); + StreamChunk(Coords.m_ChunkX, Coords.m_ChunkZ, cChunkSender::Priority::Low); return false; } } @@ -609,7 +609,7 @@ void cClientHandle::UnloadOutOfRangeChunks(void) -void cClientHandle::StreamChunk(int a_ChunkX, int a_ChunkZ, cChunkSender::eChunkPriority a_Priority) +void cClientHandle::StreamChunk(int a_ChunkX, int a_ChunkZ, cChunkSender::Priority a_Priority) { if (m_State >= csDestroying) { |