1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2024-06-20 04:09:59 +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", "");
});
int id = 0;
for(auto& lp: linepatterns::patterns) {
using namespace linepatterns;
int id = 0;
if(among(lp.id, patTriTree, patTriRings, patTriOther)) {
dialog::addColorItem(XLAT(lp.lpname), lp.color, '1'+(id++));
dialog::add_action([&lp] () {