1 | /* |
1 | /* |
2 | * static char *rcsid_door_c = |
2 | * static char *rcsid_door_c = |
3 | * "$Id: door.c,v 1.1.1.2 2006/02/22 18:03:15 elmex Exp $"; |
3 | * "$Id: door.c,v 1.2 2006/08/13 17:16:03 elmex dead $"; |
4 | */ |
4 | */ |
5 | |
5 | |
6 | /* |
6 | /* |
7 | CrossFire, A Multiplayer game for X-windows |
7 | CrossFire, A Multiplayer game for X-windows |
8 | |
8 | |
… | |
… | |
42 | if((j > 0) && (layout[i][j-1]=='D'||layout[i][j-1]=='#')) surround_index +=4; |
42 | if((j > 0) && (layout[i][j-1]=='D'||layout[i][j-1]=='#')) surround_index +=4; |
43 | if((j < Ysize-1) && (layout[i][j+1]=='D'&&layout[i][j+1]=='#')) surround_index +=8; |
43 | if((j < Ysize-1) && (layout[i][j+1]=='D'&&layout[i][j+1]=='#')) surround_index +=8; |
44 | return surround_index; |
44 | return surround_index; |
45 | } |
45 | } |
46 | |
46 | |
47 | void put_doors(mapstruct *the_map, char **maze, const char *doorstyle, RMParms *RP) { |
47 | void put_doors(mapstruct *the_map, char **maze, char *doorstyle, RMParms *RP) { |
48 | int i,j; |
48 | int i,j; |
49 | mapstruct *vdoors; |
49 | mapstruct *vdoors; |
50 | mapstruct *hdoors; |
50 | mapstruct *hdoors; |
51 | char doorpath[128]; |
51 | char doorpath[128]; |
52 | |
52 | |