fixed display-only inverse operators

This commit is contained in:
Zeno Rogue 2020-07-12 20:53:45 +02:00
parent 1f1e7d9bbf
commit 1774f59462
2 changed files with 18 additions and 3 deletions

View File

@ -395,6 +395,12 @@ void geometry_information::generate_floorshapes_for(int id, cell *c, int siid, i
if(!siid) {
for(int i=0; i<cor; i++) cornerlist.push_back(hpxy(0,0));
}
else if(geosupport_chessboard()) {
for(int i=0; i<cor; i++) {
hyperpoint nc = nearcorner(c, i);
cornerlist.push_back(mid_at(hpxy(0,0), nc, .94));
}
}
else {
for(int i=0; i<cor; i++) {
int ri = i;

View File

@ -1979,9 +1979,18 @@ EX namespace patterns {
dialog::addBreak(100);
dialog::addBoolItem_action(XLAT("display the inner walls"), innerwalls, '5');
dialog::addBoolItem(XLAT("display only hexagons"), (whichShape == '6'), '6');
dialog::addBoolItem(XLAT("display only heptagons"), (whichShape == '7'), '7');
dialog::addBoolItem(XLAT("display the triheptagonal grid"), (whichShape == '8'), '8');
if(geosupport_threecolor() == 2) {
dialog::addBoolItem(XLAT("display only hexagons"), (whichShape == '6'), '6');
dialog::addBoolItem(XLAT("display only heptagons"), (whichShape == '7'), '7');
dialog::addBoolItem(XLAT("display the triheptagonal grid"), (whichShape == '8'), '8');
}
if(geosupport_chessboard()) {
dialog::addBoolItem(XLAT("display only chessboard white"), (whichShape == '6'), '6');
dialog::addBoolItem(XLAT("display only chessboard black"), (whichShape == '7'), '7');
}
dialog::addBoolItem(XLAT("display full floors"), (whichShape == '9'), '9');
dialog::addSelItem(XLAT("floor type"), XLATN(winf[canvas_default_wall].name), 'i');