1 | |
|
|
2 | /* |
|
|
3 | * static char *rcsid_door_c = |
|
|
4 | * "$Id: door.C,v 1.3 2006/09/10 16:06:37 root Exp $"; |
|
|
5 | */ |
|
|
6 | |
|
|
7 | /* |
1 | /* |
8 | CrossFire, A Multiplayer game for X-windows |
2 | CrossFire, A Multiplayer game for X-windows |
9 | |
3 | |
10 | Copyright (C) 2002 Mark Wedel & Crossfire Development Team |
4 | Copyright (C) 2002 Mark Wedel & Crossfire Development Team |
11 | Copyright (C) 1992 Frank Tore Johansen |
5 | Copyright (C) 1992 Frank Tore Johansen |
… | |
… | |
22 | |
16 | |
23 | You should have received a copy of the GNU General Public License |
17 | You should have received a copy of the GNU General Public License |
24 | along with this program; if not, write to the Free Software |
18 | along with this program; if not, write to the Free Software |
25 | Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. |
19 | Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. |
26 | |
20 | |
27 | The authors can be reached via e-mail at crossfire-devel@real-time.com |
21 | The authors can be reached via e-mail at <crossfire@schmorp.de> |
28 | */ |
22 | */ |
29 | |
23 | |
30 | #include <global.h> |
24 | #include <global.h> |
31 | #include <random_map.h> |
25 | #include <random_map.h> |
32 | #include <rproto.h> |
26 | #include <rproto.h> |
… | |
… | |
51 | surround_index += 8; |
45 | surround_index += 8; |
52 | return surround_index; |
46 | return surround_index; |
53 | } |
47 | } |
54 | |
48 | |
55 | void |
49 | void |
56 | put_doors (mapstruct *the_map, char **maze, const char *doorstyle, RMParms * RP) |
50 | put_doors (maptile *the_map, char **maze, const char *doorstyle, RMParms * RP) |
57 | { |
51 | { |
58 | int i, j; |
52 | int i, j; |
59 | mapstruct *vdoors; |
53 | maptile *vdoors; |
60 | mapstruct *hdoors; |
54 | maptile *hdoors; |
61 | char doorpath[128]; |
55 | char doorpath[128]; |
62 | |
56 | |
63 | if (!strcmp (doorstyle, "none")) |
57 | if (!strcmp (doorstyle, "none")) |
64 | return; |
58 | return; |
65 | vdoors = find_style ("/styles/doorstyles", doorstyle, -1); |
59 | vdoors = find_style ("/styles/doorstyles", doorstyle, -1); |