1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2024-12-22 08:10:40 +00:00

fixed a crash in RogueViz

This commit is contained in:
Zeno Rogue 2019-09-23 01:05:36 +02:00
parent 5c1568d288
commit c3975e80ef

View File

@ -6,7 +6,7 @@ bool graph_on;
color_t graphcolor;
hyperpoint err = hpxyz(500,0,0);
hyperpoint err = point3(500,0,0);
bool iserror(hyperpoint h) { return sqhypot_d(2, h) > 10000 || std::isnan(h[0]) || std::isnan(h[1]) || std::isnan(h[2]) || std::isinf(h[0]) || std::isinf(h[1]) || std::isinf(h[2]); }