- fix bug with DI_COMPOUNDS

git-svn-id: https://svn.code.sf.net/p/speed-dreams/code/trunk@8834 30fe4595-0a0c-4342-8851-515496e4dcbd

Former-commit-id: 42dc0b0fad5cacc0a84f69328e5807838f9c327c
Former-commit-id: 9b4c3ab3013ab40dbb76a4afa3fcbd3e6feb886e
This commit is contained in:
torcs-ng 2023-03-21 13:34:11 +00:00
parent f6e7587719
commit 6b0b924bcc

View file

@ -2103,27 +2103,27 @@ cGrBoard::grDispDashboard()
break;
case DI_COMPOUND_SET:
buf1 = strTireCompounds;
if (item->setup->desired_value == 10)
if (item->setup->desired_value == 0)
{
snprintf(buf2, sizeof(buf2), "%s", "SOFT");
}
else if (item->setup->desired_value == 11)
else if (item->setup->desired_value == 1)
{
snprintf(buf2, sizeof(buf2), "%s", "MEDIUM");
}
else if (item->setup->desired_value == 12)
else if (item->setup->desired_value == 2)
{
snprintf(buf2, sizeof(buf2), "%s", "HARD");
}
else if (item->setup->desired_value == 13)
else if (item->setup->desired_value == 3)
{
snprintf(buf2, sizeof(buf2), "%s", "WET");
}
else if (item->setup->desired_value == 14)
else if (item->setup->desired_value == 4)
{
snprintf(buf2, sizeof(buf2), "%s", "EXT WET");
}
snprintf(buf3, sizeof(buf3), "%d", item->setup->value);
snprintf(buf3, sizeof(buf3), "%.0f", item->setup->value);
break;
case DI_FRONT_WING_ANGLE:
buf1 = strFrontWing;