mirror of
https://port.numenaute.org/aleajactaest/khanat-opennel-code.git
synced 2024-11-27 09:36:15 +00:00
Merge with develop
This commit is contained in:
parent
f03ad4b9cd
commit
9e3db2029d
3 changed files with 26 additions and 5 deletions
|
@ -101,9 +101,9 @@
|
|||
#include "nel/3d/index_buffer.h"
|
||||
|
||||
#ifdef NL_OS_MAC
|
||||
#include <AvailabilityMacros.h>
|
||||
#if defined(MAC_OS_X_VERSION_10_6) && MAC_OS_X_VERSION_MAX_ALLOWED >= MAC_OS_X_VERSION_10_6
|
||||
#define NL_MAC_VERSION_10_6_UP
|
||||
#else
|
||||
#endif
|
||||
#endif
|
||||
|
||||
|
|
|
@ -366,6 +366,11 @@ int main(int argc, char **argv)
|
|||
// init the Nel context
|
||||
CApplicationContext *appContext = new CApplicationContext;
|
||||
|
||||
// disable nldebug messages in logs in Release
|
||||
#ifdef NL_RELEASE
|
||||
DisableNLDebug = true;
|
||||
#endif
|
||||
|
||||
createDebug();
|
||||
|
||||
INelContext::getInstance().setWindowedApplication(true);
|
||||
|
|
|
@ -1477,14 +1477,30 @@ bool getRyzomModes(std::vector<NL3D::UDriver::CMode> &videoModes, std::vector<st
|
|||
if (videoModes[i].Width == videoModes[nFoundMode].Width && videoModes[i].Height == videoModes[nFoundMode].Height)
|
||||
{
|
||||
uint freq = videoModes[i].Frequency;
|
||||
std::string freqStr = toString(freq);
|
||||
|
||||
// if frequency is 0, take the first one else use the exact one
|
||||
if (nFoundStringFreq == -1 && ((ClientCfg.Frequency == 0) || (freq == ClientCfg.Frequency)))
|
||||
bool bFound = false;
|
||||
|
||||
// check if frequency already found in list
|
||||
for (j = 0; j < (sint)stringFreqList.size(); ++j)
|
||||
{
|
||||
nFoundStringFreq = stringFreqList.size();
|
||||
if (stringFreqList[j] == freqStr)
|
||||
{
|
||||
bFound = true;
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
stringFreqList.push_back(toString(freq));
|
||||
if (!bFound)
|
||||
{
|
||||
// if frequency is 0, take the first one else use the exact one
|
||||
if (nFoundStringFreq == -1 && ((ClientCfg.Frequency == 0) || (freq == ClientCfg.Frequency)))
|
||||
{
|
||||
nFoundStringFreq = stringFreqList.size();
|
||||
}
|
||||
|
||||
stringFreqList.push_back(freqStr);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue