fix(Handling/brakes): Brake bias member changed name

This commit is contained in:
Yimura 2021-01-22 12:36:54 +01:00
parent 8eef040e30
commit 7585536f8c
No known key found for this signature in database
GPG Key ID: 3D8FF4397E768682

View File

@ -10,9 +10,9 @@ namespace big
ImGui::SliderFloat("##brake force", &g_vehicle->m_handling->m_brake_force, 0.f, 50.f);
ImGui::Text("Brake Bias (1.0 = front, 0.0 = rear, 0.5 = balanced)");
float fBrakeBias = g_vehicle->m_handling->m_brake_bias / 2;
float fBrakeBias = g_vehicle->m_handling->m_brake_bias_front / 2;
if (ImGui::SliderFloat("##brake bias front", &fBrakeBias, 0.f, 1.f))
g_vehicle->m_handling->m_brake_bias = fBrakeBias * 2;
g_vehicle->m_handling->m_brake_bias_front = fBrakeBias * 2;
ImGui::Text("Hand Brake Force");
ImGui::SliderFloat("##hand brake force", &g_vehicle->m_handling->m_handbrake_force, 0.f, 50.f);