mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2024-12-30 03:50:34 +00:00
implemented swapdim for arb
This commit is contained in:
parent
15465d417f
commit
b04061f8a8
@ -931,5 +931,16 @@ EX void choose() {
|
||||
});
|
||||
}
|
||||
|
||||
#if MAXMDIM >= 4
|
||||
auto hooksw = addHook(hooks_swapdim, 100, [] {
|
||||
for(auto& p: {¤t, &slided})
|
||||
for(auto& s: p->shapes)
|
||||
for(auto& v: s.vertices)
|
||||
swapmatrix(v);
|
||||
for(auto& p: altmap) for(auto& pp: p.second) swapmatrix(pp.second);
|
||||
for(auto& p: arbi_matrix) swapmatrix(p.second.second);
|
||||
});
|
||||
#endif
|
||||
|
||||
EX }
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user