mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2026-10-25 10:24:26 +00:00
more elegant cellwalkers
This commit is contained in:
1 parent
2c09c5ee56
commit
ac37b6df99
20 files changed
+371
-467
No files matched your search
+2
-3
@@ -378,7 +378,7 @@ void drawrec(const heptspin& hs, int lev, hstate s, const transmatrix& V) {
|
||||
for(int d=0; d<S7; d++) {
|
||||
hstate s2 = transition(s, d);
|
||||
if(s2 == hsError) continue;
|
||||
heptspin hs2 = hsstep(hsspin(hs, d), 0);
|
||||
heptspin hs2 = hs + d + wstep;
|
||||
drawrec(hs2, lev-2, s2, V * heptmove[d]);
|
||||
}
|
||||
|
||||
@@ -566,8 +566,7 @@ void optimizeview() {
|
||||
if(turn >= 0) {
|
||||
View = View * TB;
|
||||
fixmatrix(View);
|
||||
viewctr = hsspin(viewctr, turn);
|
||||
viewctr = hsstep(viewctr, 0);
|
||||
viewctr = viewctr + turn + wstep;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user