mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2024-11-09 15:39:55 +00:00
fixed hemisphere+sphere lines
This commit is contained in:
parent
be949b3698
commit
c853d9d7b4
@ -2692,6 +2692,8 @@ EX void draw_model_elements() {
|
||||
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]);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user