mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2024-11-23 21:07:17 +00:00
fixed and simplified spin_angle
This commit is contained in:
parent
95e2c860f4
commit
eb2f9cbf8a
@ -313,8 +313,7 @@ EX bool no_easy_spin() {
|
|||||||
|
|
||||||
ld hrmap_standard::spin_angle(cell *c, int d) {
|
ld hrmap_standard::spin_angle(cell *c, int d) {
|
||||||
ld hexshift = 0;
|
ld hexshift = 0;
|
||||||
if(ctof(c) && S7==6 && S3 == 4 && BITRUNCATED) hexshift = cgi.hexshift + 2*M_PI/S7;
|
if(ctof(c) && (S7 % 2 == 0) && BITRUNCATED && !euclid) hexshift = cgi.hexshift + 2*M_PI/S7;
|
||||||
else if(ctof(c) && (S7==8 || S7 == 4) && S3 == 3 && BITRUNCATED) hexshift = cgi.hexshift + 2*M_PI/S7;
|
|
||||||
else if(cgi.hexshift && ctof(c)) hexshift = cgi.hexshift;
|
else if(cgi.hexshift && ctof(c)) hexshift = cgi.hexshift;
|
||||||
if(IRREGULAR) {
|
if(IRREGULAR) {
|
||||||
auto id = irr::cellindex[c];
|
auto id = irr::cellindex[c];
|
||||||
|
Loading…
Reference in New Issue
Block a user