1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2024-11-16 02:04:48 +00:00

fixed pattern hotkeys in expansion

This commit is contained in:
Zeno Rogue 2018-09-23 02:24:46 +02:00
parent 0435c490c3
commit c5ef68730e

View File

@ -469,9 +469,9 @@ void viewdist_configure_dialog() {
dialog::editNumber(first_distance, 0, 3000, 0, 1, "display distances from", ""); dialog::editNumber(first_distance, 0, 3000, 0, 1, "display distances from", "");
}); });
int id = 0;
for(auto& lp: linepatterns::patterns) { for(auto& lp: linepatterns::patterns) {
using namespace linepatterns; using namespace linepatterns;
int id = 0;
if(among(lp.id, patTriTree, patTriRings, patTriOther)) { if(among(lp.id, patTriTree, patTriRings, patTriOther)) {
dialog::addColorItem(XLAT(lp.lpname), lp.color, '1'+(id++)); dialog::addColorItem(XLAT(lp.lpname), lp.color, '1'+(id++));
dialog::add_action([&lp] () { dialog::add_action([&lp] () {