diff --git a/source/src/editing.cpp b/source/src/editing.cpp index 8d03662e..c9254eb0 100644 --- a/source/src/editing.cpp +++ b/source/src/editing.cpp @@ -668,7 +668,7 @@ void edittype(int type) loopv(sels) { block &sel = sels[i]; - if(type == CORNER && (sel.xs != sel.ys || sel.xs != (1 << (ffs(sel.xs) - 1)) || (sel.x | sel.y) & (sel.xs - 1))) + if(type == CORNER && (sel.xs != sel.ys || (sel.xs != 1 && sel.xs != 2 && sel.xs != 4 && sel.xs != 8 && sel.xs != 16) || (sel.x | sel.y) & (sel.xs - 1))) conoutf("corner selection must be power of 2 aligned"); else {