version 1.43 | | version 1.44 |
---|
| | |
/* | | /* |
* static char *rcsid_c_misc_c = | | * static char *rcsid_c_misc_c = |
* "$Id: c_misc.c,v 1.43 2004/10/18 02:20:00 temitchell Exp $"; | | * "$Id: c_misc.c,v 1.44 2004/10/18 03:07:06 temitchell Exp $"; |
*/ | | */ |
| | |
/* | | /* |
| | |
if (pl->state==ST_PLAYING || pl->state==ST_GET_PARTY_PASSWORD) { | | if (pl->state==ST_PLAYING || pl->state==ST_GET_PARTY_PASSWORD) { |
| | |
if(op == NULL || QUERY_FLAG(op, FLAG_WIZ)){ | | if(op == NULL || QUERY_FLAG(op, FLAG_WIZ)){ |
(void) sprintf(namebuf,"%s the %s:",pl->ob->name, | | (void) sprintf(namebuf,"%s the %s%s%s:", |
(pl->own_title[0]=='\0'?pl->title:pl->own_title)); | | pl->ob->name, |
(void) sprintf(buf,"Level %d (@%s) [%s]%s%s%s (%d)", | | (pl->own_title[0]=='\0'?pl->title:pl->own_title), |
pl->ob->level, | | pl->peaceful?" [Peaceful]":" [Hostile]", |
pl->socket.host, | | |
pl->ob->map->path, | | |
QUERY_FLAG(pl->ob,FLAG_WIZ)?" [WIZ]":"", | | QUERY_FLAG(pl->ob,FLAG_WIZ)?" [WIZ]":"", |
pl->hidden?"[HID]":"", | | pl->hidden?" [HID]":""); |
pl->peaceful?"Peaceful":"Hostile",pl->ob->count); | | (void) sprintf(buf," Level %d [%s](@%s)(%d)", |
}else{ | | pl->ob->level, |
(void) sprintf(namebuf,"%s the %s:",pl->ob->name, | | |
(pl->own_title[0]=='\0'?pl->title:pl->own_title)); | | |
sprintf(buf,"[%s]%s%s", | | |
pl->ob->map->path, | | pl->ob->map->path, |
QUERY_FLAG(pl->ob,FLAG_WIZ)?" [WIZ]":"", | | pl->socket.host, |
pl->peaceful?"Peaceful":"Hostile");} | | pl->ob->count); |
| | } |
| | else{ |
| | (void) sprintf(namebuf,"%s the %s%s%s:", |
| | pl->ob->name, |
| | (pl->own_title[0]=='\0'?pl->title:pl->own_title), |
| | pl->peaceful?" [Peaceful]":" [Hostile]", |
| | QUERY_FLAG(pl->ob,FLAG_WIZ)?" [WIZ]":""); |
| | (void) sprintf(buf," [%s]", |
| | pl->ob->map->path); |
| | } |
new_draw_info(NDI_UNIQUE, 0, op, namebuf); | | new_draw_info(NDI_UNIQUE, 0, op, namebuf); |
new_draw_info(NDI_UNIQUE, 0,op,buf); | | new_draw_info(NDI_UNIQUE, 0,op,buf); |
} | | } |