mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2024-12-19 07:20:25 +00:00
fixed for older compilers
This commit is contained in:
parent
e5d99582ee
commit
4dc45c92ed
10
euclid.cpp
10
euclid.cpp
@ -835,7 +835,7 @@ EX namespace euc {
|
|||||||
dialog::addBoolItem(XLAT("third turn space"), twisted_edit & 16, 'x');
|
dialog::addBoolItem(XLAT("third turn space"), twisted_edit & 16, 'x');
|
||||||
else
|
else
|
||||||
dialog::addBoolItem(XLAT("make it even"), twisted_edit & 16, 'x');
|
dialog::addBoolItem(XLAT("make it even"), twisted_edit & 16, 'x');
|
||||||
dialog::add_action([] { twisted_edit ^= 16; });
|
dialog::add_action([] { eu_edit.twisted ^= 16; });
|
||||||
}
|
}
|
||||||
|
|
||||||
if(nondiag) {
|
if(nondiag) {
|
||||||
@ -854,19 +854,19 @@ EX namespace euc {
|
|||||||
dialog::addBoolItem(XLAT("flip X coordinate"), twisted_edit & 1, 'x');
|
dialog::addBoolItem(XLAT("flip X coordinate"), twisted_edit & 1, 'x');
|
||||||
else
|
else
|
||||||
dialog::addBoolItem(XLAT("flipping X impossible"), twisted_edit & 1, 'x');
|
dialog::addBoolItem(XLAT("flipping X impossible"), twisted_edit & 1, 'x');
|
||||||
dialog::add_action([] { twisted_edit ^= 1; });
|
dialog::add_action([] { eu_edit.twisted ^= 1; });
|
||||||
|
|
||||||
if(g == gCubeTiling || (T_edit[1][1]+T_edit[2][2]) % 2 == 0)
|
if(g == gCubeTiling || (T_edit[1][1]+T_edit[2][2]) % 2 == 0)
|
||||||
dialog::addBoolItem(XLAT("flip Y coordinate"), twisted_edit & 2, 'y');
|
dialog::addBoolItem(XLAT("flip Y coordinate"), twisted_edit & 2, 'y');
|
||||||
else
|
else
|
||||||
dialog::addBoolItem(XLAT("flipping Y impossible"), twisted_edit & 2, 'y');
|
dialog::addBoolItem(XLAT("flipping Y impossible"), twisted_edit & 2, 'y');
|
||||||
dialog::add_action([] { twisted_edit ^= 2; });
|
dialog::add_action([] { eu_edit.twisted ^= 2; });
|
||||||
|
|
||||||
if(T_edit[0][0] == T_edit[1][1])
|
if(T_edit[0][0] == T_edit[1][1])
|
||||||
dialog::addBoolItem(XLAT("swap X and Y"), twisted_edit & 4, 'z');
|
dialog::addBoolItem(XLAT("swap X and Y"), twisted_edit & 4, 'z');
|
||||||
else
|
else
|
||||||
dialog::addBoolItem(XLAT("swapping impossible"), twisted_edit & 4, 'z');
|
dialog::addBoolItem(XLAT("swapping impossible"), twisted_edit & 4, 'z');
|
||||||
dialog::add_action([] { twisted_edit ^= 4; });
|
dialog::add_action([] { eu_edit.twisted ^= 4; });
|
||||||
}
|
}
|
||||||
dialog::addBreak(50);
|
dialog::addBreak(50);
|
||||||
torus_config_option(XLAT("third-turn space"), 'A', make_third_turn(2,0,2));
|
torus_config_option(XLAT("third-turn space"), 'A', make_third_turn(2,0,2));
|
||||||
@ -881,7 +881,7 @@ EX namespace euc {
|
|||||||
dialog::addInfo(XLAT("periods must be orthogonal for mirroring"));
|
dialog::addInfo(XLAT("periods must be orthogonal for mirroring"));
|
||||||
else {
|
else {
|
||||||
dialog::addBoolItem(XLAT("mirror flip in the second period"), twisted_edit & 8, 'x');
|
dialog::addBoolItem(XLAT("mirror flip in the second period"), twisted_edit & 8, 'x');
|
||||||
dialog::add_action([] { twisted_edit ^= 8; });
|
dialog::add_action([] { eu_edit.twisted ^= 8; });
|
||||||
}
|
}
|
||||||
|
|
||||||
dialog::addBreak(50);
|
dialog::addBreak(50);
|
||||||
|
Loading…
Reference in New Issue
Block a user