View Single Post
  #41  
Old 08-29-2007, 01:13 PM
Chompy Chompy is offline
¯\(º_o)/¯
Chompy's Avatar
Join Date: Sep 2006
Location: Norway
Posts: 2,815
Chompy is just really niceChompy is just really niceChompy is just really nice
Send a message via MSN to Chompy
PHP Code:
function checkPath(oxtxoyty) {
  
temp.nxy = {(tx 23.5/16) - (ox 23.5/16)
              (
ty 31.5/16) - (oy 31.5/16)};
  
temp.dist = (nxy[0]*nxy[0] + nxy[1]*nxy[1])^0.5;
  
temp.ow false;
  
  for(
temp.0dist++) {
    if (
onwall2((ox 23.5/16) + ((nxy[0]/dist) * i),
       (
oy 31.5/16) + ((nxy[1]/dist) * i), 0.50.5)) {
      
ow true;
      break;
    }
    
++;
  }
  return 
ow;

wee
__________________
Reply With Quote