It's not that. This is what I get for posting a script I haven't tested... it had to do with the array I was using, apparently you can't grab values from the same array you're setting. Used to be able to.
Here:
PHP Code:
function checkPath(ox, dx, oy, dy) {
temp.dx=dx - ox;
temp.dy=dy - oy;
temp.delta=((temp.dx^2)+(temp.dy^2))^.5;
i = 0;
temp.onwall = false;
while (i < temp.delta) {
temp.onwall=onwall2(ox+(temp.dx/temp.delta)*i,oy+(temp.dy/temp.delta)*i,1,1);
if (temp.onwall) break;
i++;
}
return temp.onwall;
}