mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2025-11-06 16:52:59 +00:00
just in case, remove invalid points from radar
This commit is contained in:
@@ -778,6 +778,7 @@ pair<bool, hyperpoint> makeradar(hyperpoint h) {
|
|||||||
if(d > vid.radarrange) return {false, h};
|
if(d > vid.radarrange) return {false, h};
|
||||||
if(d) h = h * (d / (vid.radarrange + cgi.scalefactor/4) / hypot_d(3, h));
|
if(d) h = h * (d / (vid.radarrange + cgi.scalefactor/4) / hypot_d(3, h));
|
||||||
}
|
}
|
||||||
|
if(invalid_point(h)) return {false, h};
|
||||||
return {true, h};
|
return {true, h};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user