version 1.86 | | version 1.87 |
---|
| | |
/* | | /* |
* static char *rcsid_c_wiz_c = | | * static char *rcsid_c_wiz_c = |
* "$Id: c_wiz.c,v 1.86 2006/07/25 21:49:28 ryo_saeba Exp $"; | | * "$Id: c_wiz.c,v 1.87 2006/07/26 15:20:23 gros Exp $"; |
*/ | | */ |
| | |
/* | | /* |
| | |
* players or wiz's. | | * players or wiz's. |
*/ | | */ |
if (op->map == m) { | | if (op->map == m) { |
| | if (strncmp(m->path, "/random/", 8)==0) { |
| | /* This is not a very satisfying solution - it would be much better |
| | * to recreate a random map with the same seed value as the old one. |
| | * Unfortunately, I think recreating the map would require some |
| | * knowledge about its 'parent', which appears very non-trivial to |
| | * me. |
| | * On the other hand, this should prevent the freeze that this |
| | * situation caused. - gros, 26th July 2006. |
| | */ |
| | new_draw_info(NDI_UNIQUE, 0, op, |
| | "You cannot reset a random map when inside it."); |
| | return 1; |
| | } |
| | |
dummy = get_object(); | | dummy = get_object(); |
dummy->map = NULL; | | dummy->map = NULL; |
EXIT_X(dummy) = op->x; | | EXIT_X(dummy) = op->x; |