mirror of
https://github.com/glest/glest-source.git
synced 2025-08-12 11:24:00 +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:
@@ -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