mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2024-12-24 17:10:36 +00:00
intester shift was interpreted as zero and did not prevent zeros
This commit is contained in:
parent
ddae7b9ce8
commit
0405584e6d
@ -143,10 +143,10 @@ void geometry_information::finishshape() {
|
|||||||
if(s == 3)
|
if(s == 3)
|
||||||
last->intester = hpxy(.2, .2518);
|
last->intester = hpxy(.2, .2518);
|
||||||
// prevent zeros
|
// prevent zeros
|
||||||
last->intester = rgpushxto0(hpxy(1.4e-8, 1.7e-8)) * last->intester;
|
last->intester = rgpushxto0(hpxy(1.4e-5, 1.7e-5)) * last->intester;
|
||||||
|
|
||||||
last->flags &=~ (POLY_BADCENTERIN | POLY_CENTERIN);
|
last->flags &=~ (POLY_BADCENTERIN | POLY_CENTERIN);
|
||||||
|
|
||||||
|
|
||||||
for(int i=last->s; i<last->e-1; i++) {
|
for(int i=last->s; i<last->e-1; i++) {
|
||||||
ld x1 = hpc[i][0] - last->intester[0], y1 = hpc[i][1] - last->intester[1], x2 = hpc[i+1][0] - last->intester[0], y2 = hpc[i+1][1] - last->intester[1];
|
ld x1 = hpc[i][0] - last->intester[0], y1 = hpc[i][1] - last->intester[1], x2 = hpc[i+1][0] - last->intester[0], y2 = hpc[i+1][1] - last->intester[1];
|
||||||
if(asign(y1, y2)) {
|
if(asign(y1, y2)) {
|
||||||
|
Loading…
Reference in New Issue
Block a user