mirror of
https://port.numenaute.org/aleajactaest/khanat-opennel-code.git
synced 2024-11-17 13:01:42 +00:00
Fixed: If frequency is 0, use the first one in list
This commit is contained in:
parent
7ed54e8c76
commit
f3ecc4f41b
1 changed files with 2 additions and 1 deletions
|
@ -1478,7 +1478,8 @@ bool getRyzomModes(std::vector<NL3D::UDriver::CMode> &videoModes, std::vector<st
|
|||
{
|
||||
uint freq = videoModes[i].Frequency;
|
||||
|
||||
if (ClientCfg.Frequency > 0 && freq == ClientCfg.Frequency)
|
||||
// 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();
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue