version 1.18 | | version 1.19 |
---|
| | |
/* | | /* |
* static char *rcsid_c_chat_c = | | * static char *rcsid_c_chat_c = |
* "$Id: c_chat.c,v 1.18 2004/11/09 07:44:24 mwedel Exp $"; | | * "$Id: c_chat.c,v 1.19 2004/12/25 18:09:29 ryo_saeba Exp $"; |
*/ | | */ |
| | |
/* | | /* |
| | |
break; | | break; |
} /*case*/ | | } /*case*/ |
new_info_map_except(NDI_WHITE, op->map, op, buf); | | new_info_map_except(NDI_WHITE, op->map, op, buf); |
new_draw_info(NDI_UNIQUE, 0, op, buf2); | | new_draw_info(NDI_UNIQUE|NDI_WHITE, 0, op, buf2); |
return(0); | | return(0); |
} else { | | } else { |
for(pl=first_player;pl!=NULL;pl=pl->next) { | | for(pl=first_player;pl!=NULL;pl=pl->next) { |
if(strncasecmp(pl->ob->name, params, MAX_NAME)==0 && | | if(strncasecmp(pl->ob->name, params, MAX_NAME)==0 && |
pl->ob->map == op->map && pl->ob != op) { | | pl->ob->map == op->map && pl->ob != op &&
|
| | !(QUERY_FLAG(pl->ob,FLAG_WIZ) && pl->ob->contr->hidden)) {
|
| | /* Hidden dms are not affected by emotions*/
|
switch(emotion) { | | switch(emotion) { |
case EMOTE_NOD: | | case EMOTE_NOD: |
sprintf(buf, "You nod solemnly to %s.", pl->ob->name); | | sprintf(buf, "You nod solemnly to %s.", pl->ob->name); |
| | |
op->name); | | op->name); |
break; | | break; |
} /*case*/ | | } /*case*/ |
new_draw_info(NDI_UNIQUE, 0, op, buf); | | new_draw_info(NDI_UNIQUE|NDI_WHITE, 0, op, buf); |
new_draw_info(NDI_UNIQUE|NDI_WHITE, 0, pl->ob, buf2); | | new_draw_info(NDI_UNIQUE|NDI_WHITE, 0, pl->ob, buf2); |
new_info_map_except2(NDI_WHITE, op->map, op, pl->ob, buf3); | | new_info_map_except2(NDI_WHITE, op->map, op, pl->ob, buf3); |
return(0); | | return(0); |
| | |
sprintf(buf2, "You look away from %s.", op->name); | | sprintf(buf2, "You look away from %s.", op->name); |
break; | | break; |
}/*case*/ | | }/*case*/ |
new_draw_info(NDI_UNIQUE, 0, op, buf); | | new_draw_info(NDI_UNIQUE|NDI_WHITE, 0, op, buf); |
new_info_map_except(NDI_WHITE, op->map, op, buf2); | | new_info_map_except(NDI_WHITE, op->map, op, buf2); |
return(0); | | return(0); |
}/*if self*/ | | }/*if self*/ |