- updated to support building with clang compiler (And cleaned up clang warnings from initial compile). Edit build-mg.sh and read the clang section as to how to build.

This commit is contained in:
Mark Vejvoda
2013-11-19 21:57:28 +00:00
parent fe07998816
commit ab64b9343f
33 changed files with 157 additions and 150 deletions

View File

@@ -52,6 +52,7 @@ MapPreview::MapPreview() {
title = "";
desc = "";
author = "";
maxFactions = 0;
refAlt = DEFAULT_MAP_CELL_HEIGHT;
hasChanged = false;
}
@@ -561,7 +562,7 @@ void MapPreview::reset(int w, int h, float alt, MapSurfaceType surf) {
this->w = w;
this->h = h;
this->maxFactions = maxFactions;
//this->maxFactions = maxFactions;
//cells = new Cell*[w];
cells.resize(w);
@@ -608,7 +609,7 @@ void MapPreview::resize(int w, int h, float alt, MapSurfaceType surf) {
int oldH = this->h;
this->w = w;
this->h = h;
this->maxFactions = maxFactions;
//this->maxFactions = maxFactions;
//create new cells
//Cell **oldCells = cells;