mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2025-02-08 23:20:12 +00:00
removed #define ALPHA from hyper.h
This commit is contained in:
parent
be5be7e59f
commit
3f0e8851ae
@ -421,6 +421,8 @@ void geometry_information::prepare_basics() {
|
|||||||
|
|
||||||
hexshift = 0;
|
hexshift = 0;
|
||||||
|
|
||||||
|
ld ALPHA = 2 * M_PI / S7;
|
||||||
|
|
||||||
ld fmin, fmax;
|
ld fmin, fmax;
|
||||||
|
|
||||||
if(arcm::in() && !prod)
|
if(arcm::in() && !prod)
|
||||||
|
1
hyper.h
1
hyper.h
@ -109,7 +109,6 @@ void addMessage(string s, char spamtype = 0);
|
|||||||
|
|
||||||
#define cginf ginf[geometry]
|
#define cginf ginf[geometry]
|
||||||
|
|
||||||
#define ALPHA (M_PI*2/S7)
|
|
||||||
#define S7 cginf.sides
|
#define S7 cginf.sides
|
||||||
#define S3 cginf.vertex
|
#define S3 cginf.vertex
|
||||||
#define hyperbolic_37 (S7 == 7 && S3 == 3 && !bt::in() && !arcm::in())
|
#define hyperbolic_37 (S7 == 7 && S3 == 3 && !bt::in() && !arcm::in())
|
||||||
|
@ -520,7 +520,7 @@ bool step(int delta) {
|
|||||||
ld dist = cgi.hcrossf / 2;
|
ld dist = cgi.hcrossf / 2;
|
||||||
ld dists[8];
|
ld dists[8];
|
||||||
for(int i=0; i<S7; i++) {
|
for(int i=0; i<S7; i++) {
|
||||||
dists[i] = hdist(s.p, xspinpush0(cgi.hexshift - i * ALPHA, -cgi.hcrossf));
|
dists[i] = hdist(s.p, xspinpush0(cgi.hexshift - i * 2 * M_PI / S7, -cgi.hcrossf));
|
||||||
if(dists[i] < dist)
|
if(dists[i] < dist)
|
||||||
d = i, dist = dists[i];
|
d = i, dist = dists[i];
|
||||||
}
|
}
|
||||||
|
@ -2628,7 +2628,7 @@ EX namespace linepatterns {
|
|||||||
if(pseudohept(c) && (p/4 == 10 || p/4 == 8))
|
if(pseudohept(c) && (p/4 == 10 || p/4 == 8))
|
||||||
for(int i=0; i<S7; i++) if(c->move(i) && emeraldval(c->move(i)) == p-4) {
|
for(int i=0; i<S7; i++) if(c->move(i) && emeraldval(c->move(i)) == p-4) {
|
||||||
gridlinef(V, C0, tC0(cgi.heptmove[i]), col, 2 + vid.linequality);
|
gridlinef(V, C0, tC0(cgi.heptmove[i]), col, 2 + vid.linequality);
|
||||||
gridlinef(V, C0, xspinpush0(-i * ALPHA, -hdist/2), col, 2 + vid.linequality);
|
gridlinef(V, C0, xspinpush0(-i * 2 * M_PI / S7, -hdist/2), col, 2 + vid.linequality);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user