diff --git a/include/game/GameData.hpp b/include/game/GameData.hpp index 2f40f60..5af4205 100644 --- a/include/game/GameData.hpp +++ b/include/game/GameData.hpp @@ -158,8 +158,6 @@ struct ChunkData { int x; int z; uint8_t lod; - int size; - float spacing; float player_x; float player_y; float player_z; diff --git a/src/game/GameLogic.cpp b/src/game/GameLogic.cpp index 7d49924..4ca2e3f 100644 --- a/src/game/GameLogic.cpp +++ b/src/game/GameLogic.cpp @@ -531,8 +531,6 @@ void GameLogic::OnChunkData(const ChunkData& req) { resp.x = req.x; resp.z = req.z; resp.lod = req.lod; - resp.size = WorldChunk::DEFAULT_SIZE; - resp.spacing = WorldChunk::DEFAULT_SPACING; resp.timestamp = GetCurrentTimestamp(); const auto& verts = chunk->GetVertices(); resp.vertices.reserve(verts.size() * 6); diff --git a/src/network/GameServer.cpp b/src/network/GameServer.cpp index 674b82a..f563d43 100644 --- a/src/network/GameServer.cpp +++ b/src/network/GameServer.cpp @@ -532,8 +532,6 @@ void GameServer::RegisterCallbacks(const std::string& protocol, GameLogic& game_ BinaryProtocol::BinaryWriter writer; writer.WriteInt32(data.x); writer.WriteInt32(data.z); - writer.WriteInt32(data.size); - writer.WriteFloat(data.spacing); uint32_t vertexDataSize = static_cast(data.vertices.size() * sizeof(float)); writer.WriteUInt32(vertexDataSize); writer.WriteBytes(reinterpret_cast(data.vertices.data()), vertexDataSize); @@ -711,8 +709,6 @@ void GameServer::RegisterCallbacks(const std::string& protocol, GameLogic& game_ {"x", data.x}, {"z", data.z}, {"lod", data.lod}, - {"size", data.size}, - {"spacing", data.spacing}, {"vertices", data.vertices}, {"indices", data.indices}, {"timestamp", data.timestamp}