- only ask to save map when a change is made

This commit is contained in:
Mark Vejvoda
2012-08-10 17:59:04 +00:00
parent c982bce20f
commit 231d86b4f6
3 changed files with 67 additions and 19 deletions

View File

@@ -149,10 +149,15 @@ private:
bool fileLoaded;
string mapFileLoaded;
bool hasChanged;
public:
MapPreview();
~MapPreview();
bool getHasChanged() const { return hasChanged; }
void setHasChanged(bool value) { hasChanged = value; }
float getHeight(int x, int y) const;
bool isCliff(int x,int y);
MapSurfaceType getSurface(int x, int y) const;