Skip to content

Commit

Permalink
Useless comments removed.
Browse files Browse the repository at this point in the history
  • Loading branch information
Unarelith committed Feb 7, 2020
1 parent 4cae1b9 commit 260d4cb
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 29 deletions.
1 change: 0 additions & 1 deletion client/source/hud/HUD.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@ HUD::HUD(ClientPlayer &player, ClientWorld &world, ClientCommandHandler &client)
{
setScale(GUI_SCALE, GUI_SCALE, 1);

// FIXME: Duplicated with LuaGUI
m_shader.createProgram();
m_shader.addShader(GL_VERTEX_SHADER, "resources/shaders/basic.v.glsl");
m_shader.addShader(GL_FRAGMENT_SHADER, "resources/shaders/basic.f.glsl");
Expand Down
2 changes: 0 additions & 2 deletions common/include/world/Chunk.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -84,8 +84,6 @@ class Chunk : public gk::NonCopyable {
const DataArray &data() const { return m_data; }

protected:
// void updateNeighbours(int x, int y, int z);

s32 m_x;
s32 m_y;
s32 m_z;
Expand Down
26 changes: 0 additions & 26 deletions common/source/world/Chunk.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -78,9 +78,6 @@ void Chunk::setBlock(int x, int y, int z, u16 type) {

setBlockRaw(x, y, z, type);

// FIXME
// updateNeighbours(x, y, z);

if(x == 0 && m_surroundingChunks[Left]) { m_surroundingChunks[Left]->m_hasChanged = true; }
if(x == width - 1 && m_surroundingChunks[Right]) { m_surroundingChunks[Right]->m_hasChanged = true; }
if(y == 0 && m_surroundingChunks[Bottom]) { m_surroundingChunks[Bottom]->m_hasChanged = true; }
Expand Down Expand Up @@ -179,26 +176,3 @@ bool Chunk::areAllNeighboursInitialized() const {
&& m_surroundingChunks[Chunk::Top] && m_surroundingChunks[Chunk::Top]->isInitialized();
}

// FIXME
// void Chunk::updateNeighbours(int x, int y, int z) {
// int neighbours[7][3] = {
// {x, y, z},
// {x - 1, y, z},
// {x + 1, y, z},
// {x, y - 1, z},
// {x, y + 1, z},
// {x, y, z - 1},
// {x, y, z + 1},
// };
//
// for (u32 i = 0 ; i < 7 ; ++i) {
// u32 blockID = getBlock(neighbours[i][0], neighbours[i][1], neighbours[i][2]);
// if (blockID) {
// const Block &block = Registry::getInstance().getBlock(blockID);
// block.onNeighbourUpdate(glm::vec3{x, y, z},
// glm::vec3{neighbours[i][0], neighbours[i][1], neighbours[i][2]},
// *this);
// }
// }
// }

0 comments on commit 260d4cb

Please sign in to comment.