Set the fallback threshold for tyre slip effects to zero
This commit is contained in:
parent
f3e7674aa7
commit
4f8870427f
|
|
@ -364,7 +364,7 @@ int devsetup(const char* device_type, const char* device_subtype, const char* co
|
||||||
if (ds->effect_type == EFFECT_TYRESLIP || ds->effect_type == EFFECT_TYRELOCK || ds->effect_type == EFFECT_ABSBRAKES)
|
if (ds->effect_type == EFFECT_TYRESLIP || ds->effect_type == EFFECT_TYRELOCK || ds->effect_type == EFFECT_ABSBRAKES)
|
||||||
{
|
{
|
||||||
gettyre(device_settings, ds);
|
gettyre(device_settings, ds);
|
||||||
ds->threshold = .75;
|
ds->threshold = 0;
|
||||||
int found = config_setting_lookup_float(device_settings, "threshold", &ds->threshold);
|
int found = config_setting_lookup_float(device_settings, "threshold", &ds->threshold);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue