version 1.30 | | version 1.31 |
---|
| | |
/* | | /* |
* static char *rcsid_apply_c = | | * static char *rcsid_apply_c = |
* "$Id: apply.c,v 1.30 2001/01/24 05:01:37 cvs Exp $"; | | * "$Id: apply.c,v 1.31 2001/01/31 07:54:52 cvs Exp $"; |
*/ | | */ |
/* | | /* |
CrossFire, A Multiplayer game for X-windows | | CrossFire, A Multiplayer game for X-windows |
| | |
| | |
case EXIT: | | case EXIT: |
if (victim->type == PLAYER && EXIT_PATH (trap)) { | | if (victim->type == PLAYER && EXIT_PATH (trap)) { |
if (trap->msg) | | /* Basically, don't show exits leading to random maps the |
| | * players output. |
| | */ |
| | if (trap->msg && strncmp(EXIT_PATH(trap),"/!",2) && strncmp(EXIT_PATH(trap), "/random/", 8)) |
new_draw_info (NDI_NAVY, 0, victim, trap->msg); | | new_draw_info (NDI_NAVY, 0, victim, trap->msg); |
enter_exit (victim, trap); | | enter_exit (victim, trap); |
} | | } |
| | |
new_draw_info_format(NDI_UNIQUE, 0, op, | | new_draw_info_format(NDI_UNIQUE, 0, op, |
"The %s is closed.",query_name(tmp)); | | "The %s is closed.",query_name(tmp)); |
} else { | | } else { |
if (tmp->msg) | | /* Don't display messages for random maps. */ |
| | if (tmp->msg && strncmp(EXIT_PATH(tmp),"/!",2) && strncmp(EXIT_PATH(tmp), "/random/", 8)) |
new_draw_info(NDI_NAVY, 0, op, tmp->msg); | | new_draw_info(NDI_NAVY, 0, op, tmp->msg); |
enter_exit(op,tmp); | | enter_exit(op,tmp); |
} | | } |