Fix #8155: Roadtype speed limit in toolbar dropdown in scenario editor was doubled

This commit is contained in:
Yexo 2020-05-19 20:01:09 +02:00 committed by GitHub
parent f6223f8ac2
commit 587d8e716b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1359,7 +1359,7 @@ DropDownList GetScenRoadTypeDropDownList(RoadTramTypes rtts)
DropDownListIconItem *item = new DropDownListIconItem(rti->gui_sprites.build_x_road, PAL_NONE, str, rt, !HasBit(avail_roadtypes, rt)); DropDownListIconItem *item = new DropDownListIconItem(rti->gui_sprites.build_x_road, PAL_NONE, str, rt, !HasBit(avail_roadtypes, rt));
item->SetDimension(d); item->SetDimension(d);
item->SetParam(0, rti->strings.menu_text); item->SetParam(0, rti->strings.menu_text);
item->SetParam(1, rti->max_speed); item->SetParam(1, rti->max_speed / 2);
list.emplace_back(item); list.emplace_back(item);
} }