version 1.29 | | version 1.30 |
---|
| | |
/* | | /* |
* static char *rcsid_main_c = | | * static char *rcsid_main_c = |
* "$Id: main.c,v 1.29 2001/03/02 07:36:36 mwedel Exp $"; | | * "$Id: main.c,v 1.30 2001/03/05 02:05:19 mwedel Exp $"; |
*/ | | */ |
| | |
/* | | /* |
| | |
else | | else |
newmap = ready_map_name(EXIT_PATH(exit_ob), 0); | | newmap = ready_map_name(EXIT_PATH(exit_ob), 0); |
} | | } |
| | if (!newmap) { |
| | new_draw_info_format(NDI_UNIQUE, 0, op, "The %s is closed.", exit_ob->name); |
| | return; |
| | } |
| | |
/* This supports the old behaviour, but it really should not be used. | | /* This supports the old behaviour, but it really should not be used. |
* I will note for example that with this method, it is impossible to | | * I will note for example that with this method, it is impossible to |
* set 0,0 destination coordinates. Really, if we want to support | | * set 0,0 destination coordinates. Really, if we want to support |
| | |
exit_ob->name?exit_ob->name:"(none)", exit_ob->x, exit_ob->y, | | exit_ob->name?exit_ob->name:"(none)", exit_ob->x, exit_ob->y, |
exit_ob->map?exit_ob->map->path:"(none)"); | | exit_ob->map?exit_ob->map->path:"(none)"); |
} | | } |
if (newmap) | | |
enter_map(op, newmap, x, y); | | enter_map(op, newmap, x, y); |
else | | |
new_draw_info_format(NDI_UNIQUE, 0, op, "The %s is closed.", exit_ob->name); | | |
} | | } |
/* For exits that cause damages (like pits) */ | | /* For exits that cause damages (like pits) */ |
if(exit_ob->stats.dam && op->type==PLAYER) | | if(exit_ob->stats.dam && op->type==PLAYER) |