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

fixed hemisphere+sphere lines

This commit is contained in:
Zeno Rogue 2024-06-28 14:01:16 +02:00
parent be949b3698
commit c853d9d7b4

View File

@ -2691,6 +2691,8 @@ EX void draw_model_elements() {
hyperpoint a = xpush0(z);
ld cb = pconf.ball() [1][1];
ld sb = pconf.ball() [1][2];
if(pmodel == mdHemisphere && sphere) cb = -cb;
a[1] = sb * a[2] / cb;
a[0] = sqrt(-1 + a[2] * a[2] - a[1] * a[1]);