version 1.9 | | version 1.10 |
---|
| | |
/* | | /* |
* static char *rcsid_treasure_c = | | * static char *rcsid_treasure_c = |
* "$Id: treasure.c,v 1.9 2001/02/11 08:17:06 peterm Exp $"; | | * "$Id: treasure.c,v 1.10 2001/02/23 06:06:35 mwedel Exp $"; |
*/ | | */ |
| | |
/* | | /* |
| | |
char *doors[2]; | | char *doors[2]; |
object **doorlist; | | object **doorlist; |
int ndoors_made=0; | | int ndoors_made=0; |
doorlist = (object **) calloc(sizeof(object *),8); | | doorlist = (object **) calloc(9, sizeof(object *)); /* 9 doors so we can hold termination null */ |
| | |
/* this is a list we pick from, for horizontal and vertical doors */ | | /* this is a list we pick from, for horizontal and vertical doors */ |
if(opts&DOORED) { | | if(opts&DOORED) { |