Corrected spaces.

This commit is contained in:
Steffen Fündgens 2015-01-23 16:41:56 +01:00
parent 9765f03d88
commit 5eb3aed1ce

View File

@ -45,12 +45,12 @@ void Terrain::makeTriangleMesh(){
float* abData = new float[numVertices * floatsPerVertex]; float* abData = new float[numVertices * floatsPerVertex];
while(rowNum < this->heightmapHeight){ //traversing the Triangle Strip! while(rowNum < this->heightmapHeight){ //traversing the Triangle Strip!
set_abData(abData, dataCount, rowNum, columnNum); set_abData(abData, dataCount, rowNum, columnNum);
dataCount += floatsPerVertex; dataCount += floatsPerVertex;
if (isUp){ if (isUp){
rowNum = rowNum + 1; rowNum = rowNum + 1;
isUp = false; isUp = false;
} }
else if (movingRight) { else if (movingRight) {
if (columnNum == this->heightmapWidth - 1) { if (columnNum == this->heightmapWidth - 1) {
set_abData(abData, dataCount, rowNum, columnNum); set_abData(abData, dataCount, rowNum, columnNum);