space() now returns a point with NaNs instead of the original position when it can't find free space

fix-squashed-planets
Tomasz Kapuściński 2022-07-09 16:48:59 +02:00
parent ec425c768b
commit b5e27c9f19
1 changed files with 5 additions and 0 deletions

View File

@ -4154,6 +4154,11 @@ bool CRobotMain::FreeSpace(Math::Vector &center, float minRadius, float maxRadiu
}
}
}
float nan = std::nanf("");
center = Math::Vector{ nan, nan, nan };
return false;
}