space() now returns a point with NaNs instead of the original position when it can't find free space
parent
ec425c768b
commit
b5e27c9f19
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue