version 1.64 | | version 1.65 |
---|
| | |
/* | | /* |
* static char *rcsid_c_misc_c = | | * static char *rcsid_c_misc_c = |
* "$Id: c_misc.c,v 1.64 2005/08/11 16:44:30 cavesomething Exp $"; | | * "$Id: c_misc.c,v 1.65 2005/08/12 08:18:59 ryo_saeba Exp $"; |
*/ | | */ |
| | |
/* | | /* |
| | |
} | | } |
| | |
/* Display a line of 'who' to op, about pl, using the formatting specified by format */ | | /* Display a line of 'who' to op, about pl, using the formatting specified by format */ |
void display_who_entry(object *op, player *pl, char *format) { | | void display_who_entry(object *op, player *pl, const char *format) { |
char tmpbuf[MAX_BUF]; | | char tmpbuf[MAX_BUF]; |
char outbuf[MAX_BUF]; | | char outbuf[MAX_BUF]; |
sint16 i; | | sint16 i; |
| | |
#ifndef BUG_LOG | | #ifndef BUG_LOG |
#define BUG_LOG "bug_log" | | #define BUG_LOG "bug_log" |
#endif | | #endif |
void bug_report(char * reportstring){ | | void bug_report(const char * reportstring){ |
FILE * fp; | | FILE * fp; |
if((fp = fopen( BUG_LOG , "a")) != NULL){ | | if((fp = fopen( BUG_LOG , "a")) != NULL){ |
fprintf(fp,"%s\n", reportstring); | | fprintf(fp,"%s\n", reportstring); |
| | |
} | | } |
| | |
| | |
int onoff_value(char *line) | | int onoff_value(const char *line) |
{ | | { |
int i; | | int i; |
| | |
| | |
int command_kill_pets(object *op, char *params) | | int command_kill_pets(object *op, char *params) |
{ | | { |
objectlink *obl, *next; | | objectlink *obl, *next; |
int target, counter=0, removecount=0; | | int counter=0, removecount=0; |
if (params == NULL) { | | if (params == NULL) { |
terminate_all_pets(op); | | terminate_all_pets(op); |
new_draw_info(NDI_UNIQUE, 0, op, "Your pets have been killed."); | | new_draw_info(NDI_UNIQUE, 0, op, "Your pets have been killed."); |