1 | /* |
1 | /* |
2 | * static char *rcsid_floor_c = |
2 | * static char *rcsid_floor_c = |
3 | * "$Id: floor.C,v 1.2 2006/08/29 08:01:36 root Exp $"; |
3 | * "$Id: floor.C,v 1.3 2006/09/03 09:00:09 root Exp $"; |
4 | */ |
4 | */ |
5 | |
5 | |
6 | /* |
6 | /* |
7 | CrossFire, A Multiplayer game for X-windows |
7 | CrossFire, A Multiplayer game for X-windows |
8 | |
8 | |
… | |
… | |
36 | mapstruct *make_map_floor(char **layout, char *floorstyle,RMParms *RP) { |
36 | mapstruct *make_map_floor(char **layout, char *floorstyle,RMParms *RP) { |
37 | char styledirname[256]; |
37 | char styledirname[256]; |
38 | char stylefilepath[256]; |
38 | char stylefilepath[256]; |
39 | mapstruct *style_map=0; |
39 | mapstruct *style_map=0; |
40 | object *the_floor; |
40 | object *the_floor; |
41 | mapstruct *newMap =0; /* (mapstruct *) calloc(sizeof(mapstruct),1); */ |
41 | mapstruct *newMap =0; |
42 | |
42 | |
43 | /* allocate the map */ |
43 | /* allocate the map */ |
44 | newMap = get_empty_map(RP->Xsize,RP->Ysize); |
44 | newMap = get_empty_map(RP->Xsize,RP->Ysize); |
45 | |
45 | |
46 | /* get the style map */ |
46 | /* get the style map */ |