1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2024-06-22 21:23:18 +00:00

fixed master_relative on small bitruncated spaces

This commit is contained in:
Zeno Rogue 2019-11-28 19:54:09 +01:00
parent 293d881afa
commit 661b9db9c4

View File

@ -45,9 +45,9 @@ EX transmatrix master_relative(cell *c, bool get_inverse IS(false)) {
}
#endif
else if(BITRUNCATED) {
for(int d=0; d<S7; d++) if(c->master->c7->move(d) == c)
return (get_inverse?cgi.invhexmove:cgi.hexmove)[d];
return Id;
if(c == c->master->c7)
return Id;
return (get_inverse?cgi.invhexmove:cgi.hexmove)[c->c.spin(0)];
}
else if(WDIM == 3)
return Id;