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
1 changed files with 1 additions and 0 deletions

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};
}