1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2024-11-24 05:17:17 +00:00

just in case, remove invalid points from radar

This commit is contained in:
Zeno Rogue 2019-08-21 00:35:34 +02:00
parent b97666980e
commit 9de77a2280

View File

@ -778,6 +778,7 @@ pair<bool, hyperpoint> makeradar(hyperpoint h) {
if(d > vid.radarrange) return {false, 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};
}