mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2024-11-27 14:37:16 +00:00
embeddings:: correct ASCII in euc_in_hyp radar
This commit is contained in:
parent
373c0fe152
commit
db6d9c0245
@ -156,13 +156,16 @@ EX void draw_radar(bool cornermode) {
|
|||||||
compassdir('D', point3(0, 0,-1));
|
compassdir('D', point3(0, 0,-1));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
ld f = cgi.scalefactor;
|
||||||
|
if(cgi.emb->is_euc_in_hyp()) f /= exp(vid.depth);
|
||||||
|
|
||||||
auto locate = [&] (hyperpoint h) {
|
auto locate = [&] (hyperpoint h) {
|
||||||
if(sph)
|
if(sph)
|
||||||
return point3(cx + (rad-10) * h[0], cy + (rad-10) * h[2] * si + (rad-10) * h[1] * co, +h[1] * si > h[2] * co ? 8 : 16);
|
return point3(cx + (rad-10) * h[0], cy + (rad-10) * h[2] * si + (rad-10) * h[1] * co, +h[1] * si > h[2] * co ? 8 : 16);
|
||||||
else if(hyp)
|
else if(hyp)
|
||||||
return point3(cx + rad * h[0], cy + rad * h[1], 1/(1+h[ldim]) * cgi.scalefactor * current_display->radius / (inHighQual ? 10 : 6));
|
return point3(cx + rad * h[0], cy + rad * h[1], 1/(1+h[ldim]) * cgi.scalefactor * current_display->radius / (inHighQual ? 10 : 6));
|
||||||
else
|
else
|
||||||
return point3(cx + rad * h[0], cy + rad * h[1], rad * cgi.scalefactor / (vid.radarrange + cgi.scalefactor/4) * 0.8);
|
return point3(cx + rad * h[0], cy + rad * h[1], rad * f / (vid.radarrange + f/4) * 0.8);
|
||||||
};
|
};
|
||||||
|
|
||||||
for(auto& r: cd->radarlines) {
|
for(auto& r: cd->radarlines) {
|
||||||
|
Loading…
Reference in New Issue
Block a user