diff options
author | Yexo <thijsm@google.com> | 2020-05-19 20:01:09 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-05-19 20:01:09 +0200 |
commit | 587d8e716b83050dab52da831afb9286589880ae (patch) | |
tree | 2917de4d22c71699e5c504b9caa7f4a250011ac7 /src | |
parent | f6223f8ac266f75fdc55f2d9daf0f8574235844a (diff) | |
download | openttd-587d8e716b83050dab52da831afb9286589880ae.tar.xz |
Fix #8155: Roadtype speed limit in toolbar dropdown in scenario editor was doubled
Diffstat (limited to 'src')
-rw-r--r-- | src/road_gui.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/road_gui.cpp b/src/road_gui.cpp index 45ab0f6f8..4c6e9df86 100644 --- a/src/road_gui.cpp +++ b/src/road_gui.cpp @@ -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)); item->SetDimension(d); item->SetParam(0, rti->strings.menu_text); - item->SetParam(1, rti->max_speed); + item->SetParam(1, rti->max_speed / 2); list.emplace_back(item); } |