1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2024-06-24 06:03:23 +00:00

fixup to chasmifyPoly

This commit is contained in:
Zeno Rogue 2019-05-10 04:03:19 +02:00
parent 152ca6aacf
commit a4fdaac4ab

View File

@ -157,7 +157,7 @@ void chasmifyPoly(double fac, double fac2, int k) {
auto at = [&] (ld x, ld y) {
x *= (isize(points) - 1);
int zf = int(x);
if(zf == isize(points)) zf--;
if(zf == isize(points)-1) zf--;
x -= zf;
hpcpush(zshift(normalize(points[zf] + (points[zf+1] - points[zf]) * x), fac + (fac2-fac) * y));
};