Difference for server/c_misc.c from version 1.75 to 1.76


version 1.75 version 1.76
Line 1
 
Line 1
 /*  /*
  * static char *rcsid_c_misc_c =   * static char *rcsid_c_misc_c =
  *   "$Id: c_misc.c,v 1.75 2006/02/03 02:34:20 cavesomething Exp $";   *   "$Id: c_misc.c,v 1.76 2006/02/10 23:59:27 akirschbaum Exp $";
  */   */
   
 /*  /*
Line 947
 
Line 947
 int command_applymode(object *op, char *params)  int command_applymode(object *op, char *params)
 {  {
     unapplymode unapply = op->contr->unapply;      unapplymode unapply = op->contr->unapply;
     static char *types[]={"nochoice", "never", "always"};      static const char* const types[]={"nochoice", "never", "always"};
   
     if (!params) {      if (!params) {
  new_draw_info_format(NDI_UNIQUE, 0, op, "applymode is set to %s",   new_draw_info_format(NDI_UNIQUE, 0, op, "applymode is set to %s",
Line 976
 
Line 976
 int command_bowmode(object *op, char *params)  int command_bowmode(object *op, char *params)
 {  {
     bowtype_t oldtype=op->contr->bowtype;      bowtype_t oldtype=op->contr->bowtype;
     static char *types[] =      static const char* const types[] =
  {"normal", "threewide", "spreadshot", "firenorth",   {"normal", "threewide", "spreadshot", "firenorth",
  "firene", "fireeast", "firese", "firesouth",   "firene", "fireeast", "firese", "firesouth",
  "firesw", "firewest", "firenw", "bestarrow"};   "firesw", "firewest", "firenw", "bestarrow"};
Line 1018
 
Line 1018
 int command_petmode(object *op, char *params)  int command_petmode(object *op, char *params)
 {  {
     petmode_t oldtype=op->contr->petmode;      petmode_t oldtype=op->contr->petmode;
     static char *types[]={"normal", "sad", "defend", "arena"};      static const char* const types[]={"normal", "sad", "defend", "arena"};
   
     if (!params) {      if (!params) {
  new_draw_info_format(NDI_UNIQUE, 0, op, "petmode is set to %s",   new_draw_info_format(NDI_UNIQUE, 0, op, "petmode is set to %s",
Line 1089
 
Line 1089
 int command_usekeys(object *op, char *params)  int command_usekeys(object *op, char *params)
 {  {
     usekeytype oldtype=op->contr->usekeys;      usekeytype oldtype=op->contr->usekeys;
     static char *types[]={"inventory", "keyrings", "containers"};      static const char* const types[]={"inventory", "keyrings", "containers"};
   
     if (!params) {      if (!params) {
  new_draw_info_format(NDI_UNIQUE, 0, op, "usekeys is set to %s",   new_draw_info_format(NDI_UNIQUE, 0, op, "usekeys is set to %s",


Legend:
line(s) removed in v.1.75 
line(s) changed
 line(s) added in v.1.76

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