mirror of
https://github.com/glest/glest-source.git
synced 2025-08-27 09:54:26 +02:00
- client connected menu now uses same rendering as custom game menu for map preview (resulting in better fps there)
This commit is contained in:
@@ -124,6 +124,7 @@ private:
|
||||
int refAlt;
|
||||
|
||||
bool fileLoaded;
|
||||
string mapFileLoaded;
|
||||
|
||||
public:
|
||||
MapPreview();
|
||||
@@ -186,6 +187,7 @@ public:
|
||||
void applyNewHeight(float newHeight, int x, int y, int strenght);
|
||||
|
||||
bool hasFileLoaded() const {return fileLoaded;}
|
||||
string getMapFileLoaded() const { return mapFileLoaded; }
|
||||
};
|
||||
|
||||
}}// end namespace
|
||||
|
@@ -28,6 +28,7 @@ namespace Shared { namespace Map {
|
||||
// ================== PUBLIC =====================
|
||||
|
||||
MapPreview::MapPreview() {
|
||||
mapFileLoaded = "";
|
||||
fileLoaded = false;
|
||||
heightFactor = DEFAULT_MAP_CELL_HEIGHT_FACTOR;
|
||||
waterLevel = DEFAULT_MAP_WATER_DEPTH;
|
||||
@@ -741,6 +742,7 @@ void MapPreview::loadFromFile(const string &path) {
|
||||
fclose(f1);
|
||||
|
||||
fileLoaded = true;
|
||||
mapFileLoaded = path;
|
||||
}
|
||||
else {
|
||||
throw runtime_error("error opening map file: " + path);
|
||||
|
Reference in New Issue
Block a user