rogueviz:: fixed the 'vertex shape' option

This commit is contained in:
Zeno Rogue 2021-02-20 15:07:10 +01:00
parent bf0956966a
commit cc45b32be1
1 changed files with 3 additions and 1 deletions

View File

@ -1118,7 +1118,9 @@ void showMenu() {
}
dialog::addBoolItem_action(XLAT("vertices in 3D"), rog3, 'v');
dialog::addSelItem(XLAT("vertex shape"), its(vertex_shape), 'w');
dialog::add_action_push([] { vertex_shape = (1 + vertex_shape) & 3; });
dialog::add_action([] {
vertex_shape = (1 + vertex_shape) & 3;
});
dialog::add_key_action('z', [] {
for(int i=0; i<isize(named)-1; i++) if(named[i] == cwt.at)