Difference for common/los.c from version 1.16 to 1.17


version 1.16 version 1.17
Line 1
 
Line 1
 /*  /*
  * static char *rcsid_los_c =   * static char *rcsid_los_c =
  *   "$Id: los.c,v 1.16 2005/12/05 23:34:03 akirschbaum Exp $";   *   "$Id: los.c,v 1.17 2006/02/09 00:48:36 akirschbaum Exp $";
  */   */
   
 /*  /*
Line 292
 
Line 292
  * check the op->glow_radius instead of calling this.   * check the op->glow_radius instead of calling this.
  */   */
   
 int has_carried_lights(object *op) {  int has_carried_lights(const object *op) {
     /* op may glow! */      /* op may glow! */
     if(op->glow_radius>0) return 1;      if(op->glow_radius>0) return 1;
   
Line 494
 
Line 494
  * map is the map that changed, x and y are the coordinates.   * map is the map that changed, x and y are the coordinates.
  */   */
   
 void update_all_los(mapstruct *map, int x, int y) {  void update_all_los(const mapstruct *map, int x, int y) {
     player *pl;      player *pl;
   
     for(pl=first_player;pl!=NULL;pl=pl->next) {      for(pl=first_player;pl!=NULL;pl=pl->next) {
Line 586
 
Line 586
  * check if any players are nearby, and edit their LOS array.   * check if any players are nearby, and edit their LOS array.
  */   */
   
 void make_sure_seen(object *op) {  void make_sure_seen(const object *op) {
     player *pl;      player *pl;
   
     for (pl = first_player; pl; pl = pl->next)      for (pl = first_player; pl; pl = pl->next)
Line 605
 
Line 605
  * players within its range   * players within its range
  */   */
   
 void make_sure_not_seen(object *op) {   void make_sure_not_seen(const object *op) {
     player *pl;      player *pl;
     for (pl = first_player; pl; pl = pl->next)      for (pl = first_player; pl; pl = pl->next)
  if (pl->ob->map == op->map &&   if (pl->ob->map == op->map &&


Legend:
line(s) removed in v.1.16 
line(s) changed
 line(s) added in v.1.17

File made using version 1.98 of cvs2html by leaf at 2011-07-21 17:12