From b57c4c8d4eaf17cd4fd9ac0590fc9879394d43dc Mon Sep 17 00:00:00 2001 From: Zeno Rogue Date: Fri, 9 Aug 2019 14:38:55 +0200 Subject: [PATCH] walker now automatically fixes spin --- hyper.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hyper.h b/hyper.h index 3b939709..2519e450 100644 --- a/hyper.h +++ b/hyper.h @@ -635,7 +635,7 @@ template struct walker { T *at; int spin; bool mirrored; - walker (T *at = NULL, int s = 0, bool m = false) : at(at), spin(s), mirrored(m) { } + walker (T *at = NULL, int s = 0, bool m = false) : at(at), spin(s), mirrored(m) { if(at) s = at->c.fix(s); } walker& operator += (int i) { spin = at->c.fix(spin+(mirrored?-i:i)); return (*this);