1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2024-11-16 10:14:48 +00:00

hypcity:: fixed normalization

This commit is contained in:
Zeno Rogue 2021-03-31 14:35:57 +02:00
parent 75961e6543
commit c4b059192f

View File

@ -56,7 +56,7 @@ void prepare_tf() {
hx[2] = 0; hx[2] = 0;
hx[3] = 1; hx[3] = 1;
if(hyperbolic) hx = spin(45 * degree) * hx; if(hyperbolic) hx = spin(45 * degree) * hx;
normalize(hx); hx = normalize(hx);
hx = zshift(hx, h[2]*(t*(sphere ? 3 : 7))); hx = zshift(hx, h[2]*(t*(sphere ? 3 : 7)));
return {0, hx}; return {0, hx};