From a7fb73920476db5b92e761aef3bbbc345c0d5605 Mon Sep 17 00:00:00 2001 From: Faerbit Date: Tue, 17 Mar 2015 09:42:51 +0100 Subject: [PATCH] Removing useless variable. --- game/terrain.cc | 1 - game/terrain.hh | 1 - 2 files changed, 2 deletions(-) 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); };