mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2025-02-19 20:40:10 +00:00
fixed model orientation for spiral
This commit is contained in:
parent
4ec627b1a1
commit
937c830571
@ -1467,7 +1467,10 @@ EX void apply_other_model(shiftpoint H_orig, hyperpoint& ret, eModel md) {
|
|||||||
|
|
||||||
case mdSpiral: {
|
case mdSpiral: {
|
||||||
cld z;
|
cld z;
|
||||||
if(hyperbolic || sphere) makeband(H_orig, ret, band_conformal);
|
if(hyperbolic || sphere) {
|
||||||
|
makeband(H_orig, ret, band_conformal);
|
||||||
|
models::scr_to_ori(ret);
|
||||||
|
}
|
||||||
else ret = H;
|
else ret = H;
|
||||||
z = cld(ret[0], ret[1]) * models::spiral_multiplier;
|
z = cld(ret[0], ret[1]) * models::spiral_multiplier;
|
||||||
|
|
||||||
@ -1492,6 +1495,7 @@ EX void apply_other_model(shiftpoint H_orig, hyperpoint& ret, eModel md) {
|
|||||||
if(pconf.skiprope)
|
if(pconf.skiprope)
|
||||||
ret = mobius(ret, pconf.skiprope, 1);
|
ret = mobius(ret, pconf.skiprope, 1);
|
||||||
}
|
}
|
||||||
|
models::ori_to_scr(ret);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -3019,6 +3023,7 @@ EX void draw_boundary(int w) {
|
|||||||
hyperpoint ret = point2(real(z), imag(z));
|
hyperpoint ret = point2(real(z), imag(z));
|
||||||
ret = mobius(ret, pconf.skiprope, 1);
|
ret = mobius(ret, pconf.skiprope, 1);
|
||||||
ret *= current_display->radius;
|
ret *= current_display->radius;
|
||||||
|
models::ori_to_scr(ret);
|
||||||
curvepoint(ret);
|
curvepoint(ret);
|
||||||
}
|
}
|
||||||
queuecurve(shiftless(Id), ringcolor, 0, p).flags |= POLY_ALWAYS_IN;
|
queuecurve(shiftless(Id), ringcolor, 0, p).flags |= POLY_ALWAYS_IN;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user