From b5e27c9f1945b6ea5610e4706a426a4187cdf9dc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tomasz=20Kapu=C5=9Bci=C5=84ski?= Date: Sat, 9 Jul 2022 16:48:59 +0200 Subject: [PATCH] space() now returns a point with NaNs instead of the original position when it can't find free space --- src/level/robotmain.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/level/robotmain.cpp b/src/level/robotmain.cpp index 27d09873..2c348e7a 100644 --- a/src/level/robotmain.cpp +++ b/src/level/robotmain.cpp @@ -4154,6 +4154,11 @@ bool CRobotMain::FreeSpace(Math::Vector ¢er, float minRadius, float maxRadiu } } } + + float nan = std::nanf(""); + + center = Math::Vector{ nan, nan, nan }; + return false; }