… | |
… | |
801 | find_doors_in_room (maptile *map, int x, int y, random_map_params *RP) |
801 | find_doors_in_room (maptile *map, int x, int y, random_map_params *RP) |
802 | { |
802 | { |
803 | int i, j; |
803 | int i, j; |
804 | int ndoors = 0; |
804 | int ndoors = 0; |
805 | |
805 | |
806 | object **doorlist = (object **) calloc (sizeof (int), 1024); |
806 | object **doorlist = (object **)calloc (sizeof (int), 1024); |
807 | |
807 | |
808 | MazeData layout2 (RP->Xsize, RP->Ysize); |
808 | MazeData layout2 (RP->Xsize, RP->Ysize); |
809 | |
809 | |
810 | /* allocate and copy the layout, converting C to 0. */ |
810 | /* allocate and copy the layout, converting C to 0. */ |
811 | for (i = 0; i < RP->Xsize; i++) |
811 | for (i = 0; i < RP->Xsize; i++) |