version 1.75 | | version 1.76 |
---|
| | |
/* | | /* |
* 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 $"; |
*/ | | */ |
| | |
/* | | /* |
| | |
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", |
| | |
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"}; |
| | |
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", |
| | |
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", |