refs #796, started to move rendering distance/max.aircraft to CInterpolationAndRenderingSetup

(this will allow to remove a lot of signatures in context/simulator interface)
This commit is contained in:
Klaus Basan
2016-11-14 02:51:42 +01:00
parent 1a771aaed0
commit 6f1a6deefd
7 changed files with 158 additions and 62 deletions

View File

@@ -169,8 +169,8 @@ namespace BlackGui
void CSettingsSimulatorComponent::ps_onApplyMaxRenderedAircraft()
{
// get initial aircraft to render
int noRequested = ui->sb_MaxAircraft->value();
int oldValue = sGui->getIContextSimulator()->getMaxRenderedAircraft();
const int noRequested = ui->sb_MaxAircraft->value();
const int oldValue = sGui->getIContextSimulator()->getMaxRenderedAircraft();
if (oldValue == noRequested) { return; }
// set value