1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2024-12-25 09:30:35 +00:00

fixed displayspin in binary

This commit is contained in:
Zeno Rogue 2018-08-22 11:21:58 +02:00
parent f1e16b0233
commit bfedf93eb0

View File

@ -249,8 +249,7 @@ ld displayspin(cell *c, int d) {
else if(binarytiling) { else if(binarytiling) {
if(d == NODIR) return 0; if(d == NODIR) return 0;
if(d == c->type-1) d++; if(d == c->type-1) d++;
int dirs[8] = {0, 11, 21, 31, 42, 53, 63, 73}; return -(d+2)*M_PI/4;
return (-21-dirs[d]) * 42 / M_PI;
} }
else if(masterless) else if(masterless)
return - d * 2 * M_PI / c->type; return - d * 2 * M_PI / c->type;