1
0
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:
Zeno Rogue 2022-08-18 17:57:12 +02:00
parent 437dce455a
commit d6376bcaec

View File

@ -1464,6 +1464,7 @@ EX void build_cycle_data() {
cycle cc; cycle cc;
cc.dirs = {i}; cc.dirs = {i};
cc.tids = {t}; cc.tids = {t};
start->cmove(i);
cc.rdirs = {start->c.spin(i)}; cc.rdirs = {start->c.spin(i)};
transmatrix T = currentmap->adj(start, i); transmatrix T = currentmap->adj(start, i);
cell *at = start->cmove(i); cell *at = start->cmove(i);
@ -1471,7 +1472,7 @@ EX void build_cycle_data() {
while(at != start) { while(at != start) {
auto &sh1 = currentmap->get_cellshape(at); auto &sh1 = currentmap->get_cellshape(at);
int dir = -1; 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; int ok = 0;
for(auto rv: sh1.faces[d]) { for(auto rv: sh1.faces[d]) {
hyperpoint v = kleinize(T * sh1.from_cellcenter * rv); hyperpoint v = kleinize(T * sh1.from_cellcenter * rv);