Fixed: If frequency is 0, use the first one in list

This commit is contained in:
kervala 2015-11-08 13:43:31 +01:00
parent ca3e6f41ca
commit e67f65eb89

View file

@ -1478,7 +1478,8 @@ bool getRyzomModes(std::vector<NL3D::UDriver::CMode> &videoModes, std::vector<st
{ {
uint freq = videoModes[i].Frequency; 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(); nFoundStringFreq = stringFreqList.size();
} }