Difference for server/c_wiz.c from version 1.92 to 1.93


version 1.92 version 1.93
Line 1
 
Line 1
 /*  /*
  * static char *rcsid_c_wiz_c =   * static char *rcsid_c_wiz_c =
  *   "$Id: c_wiz.c,v 1.92 2006/08/27 15:19:05 akirschbaum Exp $";   *   "$Id: c_wiz.c,v 1.93 2006/09/04 07:21:05 mwedel Exp $";
  */   */
   
 /*  /*
Line 2036
 
Line 2036
     return 0;      return 0;
   
 }  }
   
   int command_style_map_info(object *op, char *params)
   {
       extern mapstruct *styles;
       mapstruct *mp;
       int     maps_used=0, mapmem=0, objects_used=0, x,y;
       object  *tmp;
   
       for (mp = styles; mp!=NULL; mp=mp->next) {
    maps_used++;
    mapmem += MAP_WIDTH(mp)*MAP_HEIGHT(mp)*(sizeof(object *)+sizeof(MapSpace)) + sizeof(mapstruct);
    for (x=0; x<MAP_WIDTH(mp); x++) {
        for (y=0; y<MAP_HEIGHT(mp); y++) {
    for (tmp=get_map_ob(mp, x, y); tmp!=NULL; tmp=tmp->above)
        objects_used++;
        }
    }
       }
       draw_ext_info_format(NDI_UNIQUE, 0, op, MSG_TYPE_COMMAND, MSG_TYPE_COMMAND_MAPS,
    "[fixed]Style maps loaded:    %d",
    "Style maps loaded:    %d",
    maps_used);
       draw_ext_info(NDI_UNIQUE, 0, op, MSG_TYPE_COMMAND, MSG_TYPE_COMMAND_MAPS,
      "[fixed]Memory used, not",
      "Memory used, not");
       draw_ext_info_format(NDI_UNIQUE, 0, op, MSG_TYPE_COMMAND, MSG_TYPE_COMMAND_MAPS,
    "[fixed]including objects:    %d",
    "including objects:    %d",
    mapmem);
       draw_ext_info_format(NDI_UNIQUE, 0, op, MSG_TYPE_COMMAND, MSG_TYPE_COMMAND_MAPS,
    "Style objects:        %d",
    "Style objects:        %d",
    objects_used);
       draw_ext_info_format(NDI_UNIQUE, 0, op, MSG_TYPE_COMMAND, MSG_TYPE_COMMAND_MAPS,
    "Mem for objects:      %d",
    "Mem for objects:      %d",
    objects_used * sizeof(object));
       return 0;
   }
   


Legend:
line(s) removed in v.1.92 
line(s) changed
 line(s) added in v.1.93

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