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


version 1.17 version 1.18
Line 1
 
Line 1
 /*  /*
  * static char *rcsid_los_c =   * static char *rcsid_los_c =
  *   "$Id: los.c,v 1.17 2006/02/09 00:48:36 akirschbaum Exp $";   *   "$Id: los.c,v 1.18 2006/02/17 21:29:47 akirschbaum Exp $";
  */   */
   
 /*  /*
Line 49
 
Line 49
   
 blocks block[MAP_CLIENT_X][MAP_CLIENT_Y];  blocks block[MAP_CLIENT_X][MAP_CLIENT_Y];
   
   static void expand_lighted_sight(object *op);
   
 /*  /*
  * Used to initialise the array used by the LOS routines.   * Used to initialise the array used by the LOS routines.
  * What this sets if that x,y blocks the view of bx,by   * What this sets if that x,y blocks the view of bx,by
Line 59
 
Line 61
  * be blocked.   * be blocked.
  */   */
   
 void set_block(int x,int y,int bx, int by) {  static void set_block(int x, int y, int bx, int by) {
     int index=block[x][y].index,i;      int index=block[x][y].index,i;
   
     /* Due to flipping, we may get duplicates - better safe than sorry.      /* Due to flipping, we may get duplicates - better safe than sorry.
Line 251
 
Line 253
  * This is somewhat suboptimal, would be better to improve the formula.   * This is somewhat suboptimal, would be better to improve the formula.
  */   */
   
 void expand_sight(object *op)   static void expand_sight(object *op)
 {  {
     int i,x,y, dx, dy;      int i,x,y, dx, dy;
   
Line 299
 
Line 301
     return 0;      return 0;
 }  }
    
 void expand_lighted_sight(object *op)  static void expand_lighted_sight(object *op)
 {  {
     int x,y,darklevel,ax,ay, basex, basey, mflags, light, x1, y1;      int x,y,darklevel,ax,ay, basex, basey, mflags, light, x1, y1;
     mapstruct *m=op->map;      mapstruct *m=op->map;
Line 411
 
Line 413
  * really need for any reasonable game play.   * really need for any reasonable game play.
  */   */
   
 void blinded_sight (object *op) {  static void blinded_sight(object *op) {
     int x,y;      int x,y;
   
     for (x = 0; x < op->contr->socket.mapx; x++)      for (x = 0; x < op->contr->socket.mapx; x++)


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

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