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

Comparing deliantra/server/common/los.C (file contents):
Revision 1.69 by root, Fri Mar 26 01:04:44 2010 UTC vs.
Revision 1.70 by root, Tue May 4 22:26:49 2010 UTC

534 if (!pl->ob || !pl->ob->map || !pl->ns) 534 if (!pl->ob || !pl->ob->map || !pl->ns)
535 continue; 535 continue;
536 536
537 rv_vector rv; 537 rv_vector rv;
538 538
539 get_rangevector_from_mapcoord (map, x, y, pl->ob, &rv); 539 get_rangevector_from_mapcoord (pl->ob->map, x, y, pl->ob, &rv);
540 540
541 if ((abs (rv.distance_x) <= pl->ns->mapx / 2) && (abs (rv.distance_y) <= pl->ns->mapy / 2)) 541 if ((abs (rv.distance_x) <= pl->ns->mapx / 2) && (abs (rv.distance_y) <= pl->ns->mapy / 2))
542 pl->do_los = 1; 542 pl->do_los = 1;
543 } 543 }
544} 544}

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines