ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/deliantra/server/server/player.c
(Generate patch)

Comparing deliantra/server/server/player.c (file contents):
Revision 1.2 by root, Fri Feb 3 07:25:25 2006 UTC vs.
Revision 1.3 by root, Wed Feb 8 04:32:19 2006 UTC

1/* 1/*
2 * static char *rcsid_player_c = 2 * static char *rcsid_player_c =
3 * "$Id: player.c,v 1.2 2006/02/03 07:25:25 root Exp $"; 3 * "$Id: player.c,v 1.3 2006/02/08 04:32:19 root Exp $";
4 */ 4 */
5 5
6/* 6/*
7 CrossFire, A Multiplayer game for X-windows 7 CrossFire, A Multiplayer game for X-windows
8 8
398 op=ol->ob; 398 op=ol->ob;
399 lastdist=rv.distance; 399 lastdist=rv.distance;
400 } 400 }
401 } 401 }
402 for (pl=first_player; pl != NULL; pl=pl->next) { 402 for (pl=first_player; pl != NULL; pl=pl->next) {
403 if (on_same_map(mon, pl->ob)&& can_detect_enemy(mon, pl->ob,&rv)) { 403 if (can_detect_enemy(mon, pl->ob,&rv)) {
404 404
405 if(lastdist>rv.distance) { 405 if(lastdist>rv.distance) {
406 op=pl->ob; 406 op=pl->ob;
407 lastdist=rv.distance; 407 lastdist=rv.distance;
408 } 408 }

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines