mirror of
https://github.com/JGRennison/OpenTTD-patches.git
synced 2024-11-16 00:12:51 +00:00
Fix #8155: Roadtype speed limit in toolbar dropdown in scenario editor was doubled
This commit is contained in:
parent
f6223f8ac2
commit
587d8e716b
@ -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);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user