Difference for socket/request.c from version 1.57 to 1.58


version 1.57 version 1.58
Line 1
 
Line 1
 /*  /*
  * static char *rcsid_init_c =   * static char *rcsid_init_c =
  *    "$Id: request.c,v 1.57 2004/01/20 14:52:52 tchize Exp $";   *    "$Id: request.c,v 1.58 2004/01/21 08:12:05 mwedel Exp $";
  */   */
   
 /*  /*
Line 709
 
Line 709
         AddIfShort(pl->last_stats.Cha, pl->ob->stats.Cha, CS_STAT_CHA);          AddIfShort(pl->last_stats.Cha, pl->ob->stats.Cha, CS_STAT_CHA);
     }      }
     if(pl->socket.exp64) {      if(pl->socket.exp64) {
  char s;   uint8 s;
  for(s=0;s<NUM_SKILLS;s++) {   for(s=0;s<NUM_SKILLS;s++) {
      if (pl->last_skill_ob[s] &&        if (pl->last_skill_ob[s] &&
  pl->last_skill_exp[s] != pl->last_skill_ob[s]->stats.exp) {   pl->last_skill_exp[s] != pl->last_skill_ob[s]->stats.exp) {
Line 1426
 
Line 1426
       * set to lower values.        * set to lower values.
       */        */
      if (ax >= pl->contr->socket.mapx || ay >= pl->contr->socket.mapy) {       if (ax >= pl->contr->socket.mapx || ay >= pl->contr->socket.mapy) {
    int i, got_one;
   
  oldlen = sl.len;   oldlen = sl.len;
   
  if (pl->contr->socket.ext_mapinfos){   if (pl->contr->socket.ext_mapinfos){
Line 1441
 
Line 1443
  if (check_head(&sl, &pl->contr->socket, ax, ay, 0))   if (check_head(&sl, &pl->contr->socket, ax, ay, 0))
      mask |= 0x1;       mask |= 0x1;
   
  if (mask & 0xf) {   /* If all we are doing is sending 0 (blank) faces, we don't
    * actually need to send that - just the coordinates
    * with no faces tells the client to blank out the
    * space.
    */
    got_one=0;
    for (i=oldlen+2; i<sl.len; i++) {
        if (sl.buf[i]) got_one=1;
    }
   
    if (got_one && (mask & 0xf)) {
      sl.buf[oldlen+1] = mask & 0xff;       sl.buf[oldlen+1] = mask & 0xff;
  } else {   } else {
      sl.len = oldlen;       sl.len = oldlen + 2;
       
  }   }
  /*What concerns extendinfos, nothing to be done for now    /*What concerns extendinfos, nothing to be done for now
  * (perhaps effects layer later)   * (perhaps effects layer later)


Legend:
line(s) removed in v.1.57 
line(s) changed
 line(s) added in v.1.58

File made using version 1.98 of cvs2html by leaf at 2011-07-21 19:37