1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2024-09-19 18:29:36 +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

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