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.189 by root, Sun Apr 18 05:54:18 2010 UTC vs.
Revision 1.190 by root, Sun Apr 18 05:55:04 2010 UTC

1429get_rangevector (object *op1, object *op2, rv_vector *retval, int flags) 1429get_rangevector (object *op1, object *op2, rv_vector *retval, int flags)
1430{ 1430{
1431 if (!adjacent_map (op1->map, op2->map, &retval->distance_x, &retval->distance_y)) 1431 if (!adjacent_map (op1->map, op2->map, &retval->distance_x, &retval->distance_y))
1432 { 1432 {
1433 /* be conservative and fill in _some_ data */ 1433 /* be conservative and fill in _some_ data */
1434 retval->distance = 10000; 1434 retval->distance = 10000;
1435 retval->distance_x = 10000; 1435 retval->distance_x = 10000;
1436 retval->distance_y = 10000; 1436 retval->distance_y = 10000;
1437 retval->direction = 0; 1437 retval->direction = 0;
1438 retval->part = 0; 1438 retval->part = 0;
1439 } 1439 }
1440 else 1440 else
1441 { 1441 {
1442 retval->distance_x += op2->x - op1->x; 1442 retval->distance_x += op2->x - op1->x;
1443 retval->distance_y += op2->y - op1->y; 1443 retval->distance_y += op2->y - op1->y;

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines