mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2024-09-29 14:30:40 +00:00
fixup to chasmifyPoly
This commit is contained in:
parent
152ca6aacf
commit
a4fdaac4ab
@ -157,7 +157,7 @@ void chasmifyPoly(double fac, double fac2, int k) {
|
|||||||
auto at = [&] (ld x, ld y) {
|
auto at = [&] (ld x, ld y) {
|
||||||
x *= (isize(points) - 1);
|
x *= (isize(points) - 1);
|
||||||
int zf = int(x);
|
int zf = int(x);
|
||||||
if(zf == isize(points)) zf--;
|
if(zf == isize(points)-1) zf--;
|
||||||
x -= zf;
|
x -= zf;
|
||||||
hpcpush(zshift(normalize(points[zf] + (points[zf+1] - points[zf]) * x), fac + (fac2-fac) * y));
|
hpcpush(zshift(normalize(points[zf] + (points[zf+1] - points[zf]) * x), fac + (fac2-fac) * y));
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user