mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2024-11-30 23:49:53 +00:00
fixed some bugs in edge drawing in RogueViz
This commit is contained in:
parent
6b43a7972f
commit
16603f79b7
@ -286,7 +286,7 @@ namespace collatz {
|
|||||||
virtualRebase(vd.m, true);
|
virtualRebase(vd.m, true);
|
||||||
vd.cp = perturb(dftcolor);
|
vd.cp = perturb(dftcolor);
|
||||||
vd.data = 0;
|
vd.data = 0;
|
||||||
addedge(0, 0, 0, false, collatz::collatz1);
|
addedge(0, 0, 1, false, collatz::collatz1);
|
||||||
vd.name = "1";
|
vd.name = "1";
|
||||||
storeall();
|
storeall();
|
||||||
}
|
}
|
||||||
@ -1121,7 +1121,7 @@ bool drawVertex(const transmatrix &V, cell *c, shmup::monster *m) {
|
|||||||
|
|
||||||
if(kind == kSAG) {
|
if(kind == kSAG) {
|
||||||
if(ei->weight2 > maxweight) maxweight = ei->weight2;
|
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);
|
alpha = int(pow(ei->weight2 / maxweight, gamma) * 255);
|
||||||
}
|
}
|
||||||
if(hilite || hiliteclick) alpha = (alpha + 256) / 2;
|
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);
|
virtualRebase(vdn.m, true);
|
||||||
vdn.cp = perturb(cp);
|
vdn.cp = perturb(cp);
|
||||||
vdn.data = 0;
|
vdn.data = 0;
|
||||||
addedge(i, i0, 0, false, collatz::collatz1);
|
addedge(i, i0, 1, false, collatz::collatz1);
|
||||||
vdn.m->store();
|
vdn.m->store();
|
||||||
int carry = 0;
|
int carry = 0;
|
||||||
string s2 = s;
|
string s2 = s;
|
||||||
@ -1277,7 +1277,7 @@ bool drawVertex(const transmatrix &V, cell *c, shmup::monster *m) {
|
|||||||
virtualRebase(vdn.m, true);
|
virtualRebase(vdn.m, true);
|
||||||
vdn.cp = perturb(cp);
|
vdn.cp = perturb(cp);
|
||||||
vdn.data = 0;
|
vdn.data = 0;
|
||||||
addedge(i, i0+1, 0, false, collatz::collatz2);
|
addedge(i, i0+1, 1, false, collatz::collatz2);
|
||||||
vdn.m->store();
|
vdn.m->store();
|
||||||
int carry = -1;
|
int carry = -1;
|
||||||
string s2 = s;
|
string s2 = s;
|
||||||
|
Loading…
Reference in New Issue
Block a user