mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2025-02-02 12:19:18 +00:00
fixed a freeze in snowballs
This commit is contained in:
parent
608c283f2d
commit
dd4001601f
@ -319,7 +319,8 @@ auto hchook = addHook(hooks_drawcell, 100, draw_snow)
|
|||||||
euc::build_torus3();
|
euc::build_torus3();
|
||||||
set_geometry(gCubeTiling);
|
set_geometry(gCubeTiling);
|
||||||
snow_lambda = 20;
|
snow_lambda = 20;
|
||||||
tour::on_restore([bak] { auto& T0 = euc::eu_input.user_axes; stop_game(); T0 = bak; euc::build_torus3(); start_game(); });
|
static bool once; once = false;
|
||||||
|
tour::on_restore([bak] { if(once) return; once = true; 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.", [] {
|
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);
|
set_geometry(gSpace534);
|
||||||
|
Loading…
Reference in New Issue
Block a user