Fix advanced parameters not applying after race change.

This commit is contained in:
Ottermandias 2024-01-17 00:38:39 +01:00
parent 57f4ccaaa5
commit 547c40fe52
3 changed files with 16 additions and 1 deletions

View file

@ -752,6 +752,15 @@ public class StateListener : IDisposable
case StateChanged.Source.Ipc:
state.BaseData.Parameters.Set(flag, newValue);
model.ApplySingleParameterData(flag, state.ModelData.Parameters);
break;
case StateChanged.Source.Outstanding:
state.BaseData.Parameters.Set(flag, newValue);
if (_config.UseAdvancedParameters)
{
model.ApplySingleParameterData(flag, state.ModelData.Parameters);
state[flag] = StateChanged.Source.Manual;
}
break;
}
}