1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2026-03-12 08:09:43 +00:00

more elegant airdir

This commit is contained in:
?
2019-02-26 14:08:51 +01:00
committed by Zeno Rogue
parent a6094f7b0c
commit f37c8d2f1c
2 changed files with 7 additions and 10 deletions

View File

@@ -5047,10 +5047,10 @@ void drawcell(cell *c, transmatrix V, int spinv, bool mirrored) {
for(int i=0; i<c->type; i++) {
cell *c2 = c->move(i);
if(airdist(c2) < airdist(c)) {
calcAirdir(c2); // printf("airdir = %d\n", airdir);
ld airdir = calcAirdir(c2); // printf("airdir = %d\n", airdir);
transmatrix V0 = ddspin(c, i, M_PI);
double ph = ptick(PURE?150:75) + airdir * M_PI / (S21+.0);
double ph = ptick(PURE?150:75) + airdir;
int aircol = 0x8080FF00 | int(32 + 32 * -cos(ph));