1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2024-11-27 22:39:53 +00:00

fixed some bugs in edge drawing in RogueViz

This commit is contained in:
Zeno Rogue 2018-09-03 16:33:50 +02:00
parent 6b43a7972f
commit 16603f79b7

View File

@ -286,7 +286,7 @@ namespace collatz {
virtualRebase(vd.m, true);
vd.cp = perturb(dftcolor);
vd.data = 0;
addedge(0, 0, 0, false, collatz::collatz1);
addedge(0, 0, 1, false, collatz::collatz1);
vd.name = "1";
storeall();
}
@ -1121,7 +1121,7 @@ bool drawVertex(const transmatrix &V, cell *c, shmup::monster *m) {
if(kind == kSAG) {
if(ei->weight2 > maxweight) maxweight = ei->weight2;
ld gamma = log(alpha / 256) / log(.5);
ld gamma = log(alpha / 255.) / log(.5);
alpha = int(pow(ei->weight2 / maxweight, gamma) * 255);
}
if(hilite || hiliteclick) alpha = (alpha + 256) / 2;
@ -1254,7 +1254,7 @@ bool drawVertex(const transmatrix &V, cell *c, shmup::monster *m) {
virtualRebase(vdn.m, true);
vdn.cp = perturb(cp);
vdn.data = 0;
addedge(i, i0, 0, false, collatz::collatz1);
addedge(i, i0, 1, false, collatz::collatz1);
vdn.m->store();
int carry = 0;
string s2 = s;
@ -1277,7 +1277,7 @@ bool drawVertex(const transmatrix &V, cell *c, shmup::monster *m) {
virtualRebase(vdn.m, true);
vdn.cp = perturb(cp);
vdn.data = 0;
addedge(i, i0+1, 0, false, collatz::collatz2);
addedge(i, i0+1, 1, false, collatz::collatz2);
vdn.m->store();
int carry = -1;
string s2 = s;