diff --git a/game/terrain.cc b/game/terrain.cc index fa247be..219a67d 100644 --- a/game/terrain.cc +++ b/game/terrain.cc @@ -30,7 +30,6 @@ void Terrain::load() { } } this->makeTriangleMesh(0, 0, heightmapHeight, heightmapWidth); - heightmapChanged = false; //no need to make a TriangleMesh again before rendering } void Terrain::makeTriangleMesh(int startX, int startZ, int endX, int endZ) { diff --git a/game/terrain.hh b/game/terrain.hh index 18c6891..3acb8c1 100644 --- a/game/terrain.hh +++ b/game/terrain.hh @@ -22,7 +22,6 @@ class Terrain { std::string heightmapFilePath; int heightmapHeight, heightmapWidth; float** heightmap; //can be accessed like 'float[][]' - bool heightmapChanged; ACGL::OpenGL::SharedVertexArrayObject triangleMesh; void set_abData(float* abData, int dataCount, int rowNum, int columnNum); };