ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/deliantra/server/common/map.C
(Generate patch)

Comparing deliantra/server/common/map.C (file contents):
Revision 1.158 by root, Tue Feb 17 03:53:31 2009 UTC vs.
Revision 1.159 by root, Tue May 5 04:51:56 2009 UTC

1515 else 1515 else
1516 { 1516 {
1517 retval->distance_x += op2->x - x; 1517 retval->distance_x += op2->x - x;
1518 retval->distance_y += op2->y - y; 1518 retval->distance_y += op2->y - y;
1519 1519
1520 retval->part = NULL; 1520 retval->part = 0;
1521 retval->distance = idistance (retval->distance_x, retval->distance_y); 1521 retval->distance = upos_max (abs (retval->distance_x), abs (retval->distance_y));
1522 retval->direction = find_dir_2 (-retval->distance_x, -retval->distance_y); 1522 retval->direction = find_dir_2 (-retval->distance_x, -retval->distance_y);
1523 } 1523 }
1524} 1524}
1525 1525
1526/* Returns true of op1 and op2 are effectively on the same map 1526/* Returns true of op1 and op2 are effectively on the same map

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines