mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2024-12-18 15:00:26 +00:00
rulegen3:: fixed bugs in build_cycle_data
This commit is contained in:
parent
437dce455a
commit
d6376bcaec
@ -1464,6 +1464,7 @@ EX void build_cycle_data() {
|
||||
cycle cc;
|
||||
cc.dirs = {i};
|
||||
cc.tids = {t};
|
||||
start->cmove(i);
|
||||
cc.rdirs = {start->c.spin(i)};
|
||||
transmatrix T = currentmap->adj(start, i);
|
||||
cell *at = start->cmove(i);
|
||||
@ -1471,7 +1472,7 @@ EX void build_cycle_data() {
|
||||
while(at != start) {
|
||||
auto &sh1 = currentmap->get_cellshape(at);
|
||||
int dir = -1;
|
||||
for(int d=0; d<at->type; d++) if(at->move(d) != last) {
|
||||
for(int d=0; d<at->type; d++) if(at->cmove(d) != last) {
|
||||
int ok = 0;
|
||||
for(auto rv: sh1.faces[d]) {
|
||||
hyperpoint v = kleinize(T * sh1.from_cellcenter * rv);
|
||||
|
Loading…
Reference in New Issue
Block a user