From d00498ad0ba5c33f54e3f4782fe5ef27f0ae9a84 Mon Sep 17 00:00:00 2001 From: Zeno Rogue Date: Fri, 10 Apr 2020 12:14:43 +0200 Subject: [PATCH] fixed unused capture warning --- rogueviz/snow.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rogueviz/snow.cpp b/rogueviz/snow.cpp index e9943b68..1ba9eb1c 100644 --- a/rogueviz/snow.cpp +++ b/rogueviz/snow.cpp @@ -259,7 +259,7 @@ auto hchook = addHook(hooks_drawcell, 100, draw_snow) euc::build_torus3(); set_geometry(gCubeTiling); snow_lambda = 20; - tour::on_restore([bak, &T0] { stop_game(); T0 = bak; euc::build_torus3(); start_game(); }); + tour::on_restore([bak] { auto& T0 = euc::eu_input.user_axes; stop_game(); T0 = bak; euc::build_torus3(); start_game(); }); }); snow_slide(v, "Hyperbolic geometry", "To the contrary, in hyperbolic geometry, parallax works in a completely different way. Everything moves. This space is expanding everywhere. Exponentially. In every geometry, snowballs close to us behave in a similar way as in the Euclidean space.", [] { set_geometry(gSpace534);