mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2024-10-31 19:36:16 +00:00
UNRECTIFIED now works with non-orientable
This commit is contained in:
parent
3967aee968
commit
70c0fb1c7a
@ -1186,11 +1186,13 @@ EX namespace gp {
|
||||
cell *create_move(cell *parent, int d) {
|
||||
if(UNRECTIFIED) {
|
||||
cellwalker cw(mapping[parent], d);
|
||||
bool b = cw.mirrored;
|
||||
in_underlying([&] {
|
||||
cw += wstep;
|
||||
cw --;
|
||||
cw += wstep;
|
||||
cw --;
|
||||
if(cw.mirrored != b) cw++;
|
||||
});
|
||||
cw.at = get_mapped(cw.at, 0);
|
||||
parent->c.connect(d, cw.at, cw.spin, cw.mirrored);
|
||||
|
Loading…
Reference in New Issue
Block a user