Difference for server/c_misc.c from version 1.2 to 1.3


version 1.2 version 1.3
Line 1
 
Line 1
 /*  /*
  * static char *rcsid_c_misc_c =   * static char *rcsid_c_misc_c =
  *   "$Id: c_misc.c,v 1.2 1999/07/13 06:03:04 cvs Exp $";   *   "$Id: c_misc.c,v 1.3 2000/04/22 07:16:41 cvs Exp $";
  */   */
   
 /*  /*
Line 615
 
Line 615
     }      }
     return 1;      return 1;
 }  }
   
   int command_usekeys(object *op, char *params)
   {
       usekeytype oldtype=op->contr->usekeys;
       static char *types[]={"inventory", "keyrings", "containers"};
   
       if (!params) {
    new_draw_info_format(NDI_UNIQUE, 0, op, "usekeys is set to %s",
    types[op->contr->usekeys]);
    return 1;
       }
   
       if (!strcmp(params,"inventory"))
    op->contr->usekeys=key_inventory;
       else if (!strcmp(params,"keyrings"))
    op->contr->usekeys=keyrings;
       else if (!strcmp(params,"containers"))
    op->contr->usekeys=containers;
       else {
    new_draw_info_format(NDI_UNIQUE, 0, op,
        "usekeys: Unknown options %s, valid options are inventory, keyrings, containers",
         params);
    return 0;
       }
       new_draw_info_format(NDI_UNIQUE, 0, op, "usekeys %s set to %s",
    (oldtype==op->contr->usekeys?"":"now"),
    types[op->contr->usekeys]);
       return 1;
   }


Legend:
line(s) removed in v.1.2 
line(s) changed
 line(s) added in v.1.3

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