[0.9.6] Scripting, findnoncollidingposition returns 1.7e+308
Posted: Mon Mar 31, 2014 8:36 pm
I was just using findnoncollidingposition with a maxperimeter of 30 to create an entity at a random location and on occasion found it returning {x=1.7976931348623e+308, y=1.7976931348623e+308}...I also (due to a debug statement) found myself teleported to that 'position' and saw a couple interesting effects (no character and a blinking screen, or maybe that was just the zoom going crazy, I couldn't control that either) 
My guess is that somehow this is what is returned when it fails to find a noncollidingposition (I changed the max perimeter to be 1000 and didn't see it again after multiple tests)...I think it would be preferable if it returned nil when it fails

My guess is that somehow this is what is returned when it fails to find a noncollidingposition (I changed the max perimeter to be 1000 and didn't see it again after multiple tests)...I think it would be preferable if it returned nil when it fails
