Skip to content

Commit

Permalink
Fix error in GameLODManager::Find_Static_LOD_Level (#1108)
Browse files Browse the repository at this point in the history
  • Loading branch information
xezon authored Feb 15, 2024
1 parent 0f9b63f commit 3caa927
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/game/common/gamelod.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -240,11 +240,11 @@ StaticGameLODLevel GameLODManager::Find_Static_LOD_Level()
}

for (int i = STATLOD_HIGH; i >= STATLOD_LOW; --i) {
for (int j = 0; j < m_staticLODPresetCount[j]; ++j) {
if (m_cpuType == m_LODPresets[i][j].cpu_type) {
if ((double)m_cpuMHz / (double)m_LODPresets[i][j].mhz >= 0.94
&& m_gpuType >= m_LODPresets[i][j].video_type
&& (double)(m_physicalMem / 0x100000) / (double)m_LODPresets[i][j].video_mem >= 0.94) {
for (int k = 0; k < m_staticLODPresetCount[i]; ++k) {
if (m_cpuType == m_LODPresets[i][k].cpu_type) {
if ((double)m_cpuMHz / (double)m_LODPresets[i][k].mhz >= 0.94
&& m_gpuType >= m_LODPresets[i][k].video_type
&& (double)(m_physicalMem / 0x100000) / (double)m_LODPresets[i][k].video_mem >= 0.94) {
m_idealStaticGameDetail = (StaticGameLODLevel)i;
break;
}
Expand Down

0 comments on commit 3caa927

Please sign in to comment.