version 1.23 | | version 1.24 |
---|
| | |
/* | | /* |
* static char *rcsid_c_misc_c = | | * static char *rcsid_c_misc_c = |
* "$Id: c_misc.c,v 1.23 2002/11/12 23:09:11 garbled Exp $"; | | * "$Id: c_misc.c,v 1.24 2002/11/13 05:24:53 garbled Exp $"; |
*/ | | */ |
| | |
/* | | /* |
| | |
return 1; | | return 1; |
} | | } |
| | |
#ifdef EXPLORE_MODE | | |
/* | | /* |
* don't allow people to exit explore mode. It otherwise becomes | | * don't allow people to exit explore mode. It otherwise becomes |
* really easy to abuse this. | | * really easy to abuse this. |
*/ | | */ |
int command_explore (object *op, char *params) | | int command_explore (object *op, char *params) |
{ | | { |
| | if (settings.explore_mode == FALSE) |
| | return 1; |
/* | | /* |
* I guess this is the best way to see if we are solo or not. Actually, | | * I guess this is the best way to see if we are solo or not. Actually, |
* are there any cases when first_player->next==NULL and we are not solo? | | * are there any cases when first_player->next==NULL and we are not solo? |
*/ | | */ |
if ((first_player!=op->contr) || (first_player->next!=NULL)) { | | if ((first_player!=op->contr) || (first_player->next!=NULL)) { |
new_draw_info(NDI_UNIQUE, 0,op,"You can not enter explore mode if you are in a party"); | | new_draw_info(NDI_UNIQUE, 0,op,"You can not enter explore mode if you are in a party"); |
} | | } else if (op->contr->explore) |
else if (op->contr->explore) | | |
new_draw_info(NDI_UNIQUE, 0,op, "There is no return from explore mode"); | | new_draw_info(NDI_UNIQUE, 0,op, "There is no return from explore mode"); |
else { | | else { |
op->contr->explore=1; | | op->contr->explore=1; |
| | |
} | | } |
return 1; | | return 1; |
} | | } |
#endif | | |
| | |
int command_sound (object *op, char *params) | | int command_sound (object *op, char *params) |
{ | | { |
| | |
| | |
| | |
int explore_mode() { | | int explore_mode() { |
#ifdef EXPLORE_MODE | | |
player *pl; | | player *pl; |
| | |
| | if (settings.explore_mode == TRUE) { |
for (pl = first_player; pl != (player *) NULL; pl = pl->next) | | for (pl = first_player; pl != (player *) NULL; pl = pl->next) |
if (pl->explore) | | if (pl->explore) |
return 1; | | return 1; |
#endif | | } |
return 0; | | return 0; |
} | | } |
| | |