1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2024-12-24 17:10:36 +00:00

Restore default args to "at" lambda.

This commit is contained in:
Jacob Mandelson 2022-09-17 14:49:10 -07:00
parent 2939191fa1
commit fb3c0e38b7

View File

@ -1254,7 +1254,7 @@ hpcshape& geometry_information::generate_pipe(ld length, ld width, ePipeEnd endt
const int MAX_X = 8;
const int MAX_R = 20;
auto at = [&] (ld i, ld a, ld z, ld s) {
auto at = [&] (ld i, ld a, ld z = 1, ld s = 1) {
a += 0.5;
ld alpha = 360 * degree * a / MAX_R;
hpcpush(xpush(i * length / MAX_X) * cspin(1, 2, alpha) * ypush0(width*z));