Difference for socket/request.c from version 1.13 to 1.14


version 1.13 version 1.14
Line 1
 
Line 1
 /*  /*
  * static char *rcsid_init_c =   * static char *rcsid_init_c =
  *    "$Id: request.c,v 1.13 2001/06/04 06:41:02 mwedel Exp $";   *    "$Id: request.c,v 1.14 2001/06/08 06:21:34 mwedel Exp $";
  */   */
   
 /*  /*
Line 143
 
Line 143
  else if (!strcmp(cmd,"sexp")) {   else if (!strcmp(cmd,"sexp")) {
      ns->skillexp = atoi(param);       ns->skillexp = atoi(param);
      strcat(cmdback, param);       strcat(cmdback, param);
    } else if (!strcmp(cmd,"map1cmd")) {
        ns->map1cmd = atoi(param);
        /* if beyond this size, need to use map1cmd no matter what */
        if (ns->mapx>11 || ns->mapy>11) ns->map1cmd=1;
        strcat(cmdback, ns->map1cmd?"1":"0");
  } else if (!strcmp(cmd,"mapsize")) {   } else if (!strcmp(cmd,"mapsize")) {
      int x, y=0;       int x, y=0;
      char tmpbuf[MAX_BUF], *cp;       char tmpbuf[MAX_BUF], *cp;
Line 164
 
Line 169
  */   */
  sprintf(tmpbuf,"%dx%d", x,y);   sprintf(tmpbuf,"%dx%d", x,y);
  strcat(cmdback, tmpbuf);   strcat(cmdback, tmpbuf);
    /* If beyond this size, will use map1cmd */
    if (x>11 || y>11) ns->map1cmd=1;
      }       }
  } else {   } else {
      /* Didn't get a setup command we understood -       /* Didn't get a setup command we understood -
Line 1122
 
Line 1129
     if (pl->map->in_memory!=MAP_IN_MEMORY) return;      if (pl->map->in_memory!=MAP_IN_MEMORY) return;
     memset(&newmap, 0, sizeof(struct Map));      memset(&newmap, 0, sizeof(struct Map));
   
     if (pl->contr->socket.mapx > 15 || pl->contr->socket.mapy > 15) {      if (pl->contr->socket.map1cmd) {
  /* Big maps need a different drawing mechanism to work */   /* Big maps need a different drawing mechanism to work */
  draw_client_map1(pl);   draw_client_map1(pl);
  return;   return;


Legend:
line(s) removed in v.1.13 
line(s) changed
 line(s) added in v.1.14

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