1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2024-11-23 21:07:17 +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 #endif
else if(BITRUNCATED) { else if(BITRUNCATED) {
for(int d=0; d<S7; d++) if(c->master->c7->move(d) == c) if(c == c->master->c7)
return (get_inverse?cgi.invhexmove:cgi.hexmove)[d]; return Id;
return Id; return (get_inverse?cgi.invhexmove:cgi.hexmove)[c->c.spin(0)];
} }
else if(WDIM == 3) else if(WDIM == 3)
return Id; return Id;