version 1.24 | | version 1.25 |
---|
| | |
/* | | /* |
* static char *rcsid_sock_info_c = | | * static char *rcsid_sock_info_c = |
* "$Id: info.c,v 1.24 2005/05/29 17:35:54 tchize Exp $"; | | * "$Id: info.c,v 1.25 2006/02/10 23:59:28 akirschbaum Exp $"; |
*/ | | */ |
| | |
/* | | /* |
| | |
* Else sends message to player via esrv_print_msg | | * Else sends message to player via esrv_print_msg |
*/ | | */ |
| | |
static void print_message(int colr, object *pl,const char *tmp) { | | static void print_message(int colr, const object *pl, const char *tmp) { |
| | |
if(tmp == (char *) NULL) { | | if(tmp == (char *) NULL) { |
tmp="[NULL]"; | | tmp="[NULL]"; |
| | |
* and clears the string. | | * and clears the string. |
*/ | | */ |
| | |
void flush_output_element(object *pl, Output_Buf *outputs) | | void flush_output_element(const object *pl, Output_Buf *outputs) |
{ | | { |
char tbuf[MAX_BUF]; | | char tbuf[MAX_BUF]; |
| | |
| | |
* and adds message to queue. | | * and adds message to queue. |
*/ | | */ |
| | |
void check_output_buffers(object *pl, const char *buf) | | static void check_output_buffers(const object *pl, const char *buf) |
{ | | { |
int i, oldest=0; | | int i, oldest=0; |
| | |
| | |
* | | * |
*/ | | */ |
| | |
void new_draw_info(int flags,int pri, object *pl, const char *buf) | | void new_draw_info(int flags, int pri, const object *pl, const char *buf) |
{ | | { |
| | |
if (flags & NDI_ALL) { | | if (flags & NDI_ALL) { |
| | |
* client/server bandwidth (client could keep track of various strings | | * client/server bandwidth (client could keep track of various strings |
*/ | | */ |
| | |
void new_draw_info_format(int flags, int pri,object *pl, const char *format, ...) | | void new_draw_info_format(int flags, int pri, const object *pl, const char *format, ...) |
{ | | { |
char buf[HUGE_BUF]; | | char buf[HUGE_BUF]; |
| | |
| | |
| | |
| | |
void draw_ext_info( | | void draw_ext_info( |
int flags, int pri, object *pl, uint8 type, | | int flags, int pri, const object *pl, uint8 type, |
uint8 subtype, const char* message, const char* oldmessage){ | | uint8 subtype, const char* message, const char* oldmessage){ |
| | |
if(!pl || (pl->type!=PLAYER) || (pl->contr==NULL)) | | if(!pl || (pl->type!=PLAYER) || (pl->contr==NULL)) |
| | |
} | | } |
| | |
void draw_ext_info_format( | | void draw_ext_info_format( |
int flags, int pri, object *pl, uint8 type, | | int flags, int pri, const object *pl, uint8 type, |
uint8 subtype, const char* old_format, | | uint8 subtype, const char* old_format, |
char* new_format, ...){ | | char* new_format, ...){ |
| | |