mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2025-10-28 12:27:40 +00:00
major rewrite: unified the common parts of heptagon and cell via struct connection<T> and struct walker<T>
This commit is contained in:
@@ -30,8 +30,7 @@ transmatrix spinmatrix[MAX_S84];
|
||||
ld hexshift;
|
||||
|
||||
const transmatrix& getspinmatrix(int id) {
|
||||
while(id>=S84) id -= S84;
|
||||
while(id<0) id += S84;
|
||||
id = (id + MODFIXER) % S84;
|
||||
return spinmatrix[id];
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user