summaryrefslogtreecommitdiffhomepage
path: root/StarsEx/Terrain.cpp
diff options
context:
space:
mode:
authorAki <please@ignore.pl>2024-03-01 02:28:21 +0100
committerAki <please@ignore.pl>2024-03-01 02:28:21 +0100
commit8b21a7027491d7e69bb165c0c50b0a23d1c8755e (patch)
treeef5775bece2ae744313c0bfecc2a74e7ad7f408b /StarsEx/Terrain.cpp
parent154e2d7f4a063703dbdbb0984579be10355bf785 (diff)
downloadstarshatter-8b21a7027491d7e69bb165c0c50b0a23d1c8755e.zip
starshatter-8b21a7027491d7e69bb165c0c50b0a23d1c8755e.tar.gz
starshatter-8b21a7027491d7e69bb165c0c50b0a23d1c8755e.tar.bz2
Removed useless MachineInfo queries
One questionable leftover is the Windows version check
Diffstat (limited to 'StarsEx/Terrain.cpp')
-rw-r--r--StarsEx/Terrain.cpp9
1 files changed, 1 insertions, 8 deletions
diff --git a/StarsEx/Terrain.cpp b/StarsEx/Terrain.cpp
index 4d0a5f9..94035a0 100644
--- a/StarsEx/Terrain.cpp
+++ b/StarsEx/Terrain.cpp
@@ -24,7 +24,6 @@
#include "Bitmap.h"
#include "DataLoader.h"
#include "Game.h"
-#include "MachineInfo.h"
// +--------------------------------------------------------------------+
@@ -540,14 +539,8 @@ Terrain::Height(double x, double y) const
void
Terrain::SetDetailLevel(int detail)
{
- if (detail >= 1 && detail <= 4) {
-
- // limit detail on low memory machines:
- if (detail > 3 && MachineInfo::GetTotalRam() < 64)
- detail = 3;
-
+ if (detail >= 1 && detail <= 4)
detail_level = detail;
- }
}
// +--------------------------------------------------------------------+