mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2024-11-08 06:59:55 +00:00
fixed the radar circle being not full
This commit is contained in:
parent
bb1cb01b04
commit
a3bd905ea9
@ -118,7 +118,7 @@ EX void draw_radar(bool cornermode) {
|
|||||||
|
|
||||||
auto sId = shiftless(Id);
|
auto sId = shiftless(Id);
|
||||||
|
|
||||||
for(int i=0; i<360; i++)
|
for(int i=0; i<=360; i++)
|
||||||
curvepoint(atscreenpos(cx-cos(i * degree)*rad, cy-sin(i*degree)*rad, 1) * C0);
|
curvepoint(atscreenpos(cx-cos(i * degree)*rad, cy-sin(i*degree)*rad, 1) * C0);
|
||||||
queuecurve(sId, 0xFFFFFFFF, 0x000000FF, PPR::ZERO);
|
queuecurve(sId, 0xFFFFFFFF, 0x000000FF, PPR::ZERO);
|
||||||
|
|
||||||
@ -127,13 +127,13 @@ EX void draw_radar(bool cornermode) {
|
|||||||
ld si = sin(alpha);
|
ld si = sin(alpha);
|
||||||
|
|
||||||
if(sph && !d3) {
|
if(sph && !d3) {
|
||||||
for(int i=0; i<360; i++)
|
for(int i=0; i<=360; i++)
|
||||||
curvepoint(atscreenpos(cx-cos(i * degree)*rad, cy-sin(i*degree)*rad*si, 1) * C0);
|
curvepoint(atscreenpos(cx-cos(i * degree)*rad, cy-sin(i*degree)*rad*si, 1) * C0);
|
||||||
queuecurve(sId, 0, 0x200000FF, PPR::ZERO);
|
queuecurve(sId, 0, 0x200000FF, PPR::ZERO);
|
||||||
}
|
}
|
||||||
|
|
||||||
if(d3) {
|
if(d3) {
|
||||||
for(int i=0; i<360; i++)
|
for(int i=0; i<=360; i++)
|
||||||
curvepoint(atscreenpos(cx-cos(i * degree)*rad, cy-sin(i*degree)*rad*si, 1) * C0);
|
curvepoint(atscreenpos(cx-cos(i * degree)*rad, cy-sin(i*degree)*rad*si, 1) * C0);
|
||||||
queuecurve(sId, 0xFF0000FF, 0x200000FF, PPR::ZERO);
|
queuecurve(sId, 0xFF0000FF, 0x200000FF, PPR::ZERO);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user