- client connected menu now uses same rendering as custom game menu for map preview (resulting in better fps there)

This commit is contained in:
Mark Vejvoda
2011-04-13 01:11:23 +00:00
parent 8c39a1b725
commit 05a61ec619
5 changed files with 41 additions and 5 deletions

View File

@@ -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);