1 | |
1 | |
2 | /* |
2 | /* |
3 | CrossFire, A Multiplayer game for X-windows |
3 | CrossFire, A Multiplayer game for X-windows |
4 | |
4 | |
|
|
5 | Copyright (C) 2005, 2006, 2007 Marc Lehmann & Crossfire+ Development Team |
5 | Copyright (C) 2002 Mark Wedel & Crossfire Development Team |
6 | Copyright (C) 2002 Mark Wedel & Crossfire Development Team |
6 | Copyright (C) 1992 Frank Tore Johansen |
7 | Copyright (C) 1992 Frank Tore Johansen |
7 | |
8 | |
8 | This program is free software; you can redistribute it and/or modify |
9 | This program is free software; you can redistribute it and/or modify |
9 | it under the terms of the GNU General Public License as published by |
10 | it under the terms of the GNU General Public License as published by |
… | |
… | |
46 | |
47 | |
47 | void |
48 | void |
48 | put_decor (maptile *map, char **maze, char *decorstyle, int decor_option, random_map_params *RP) |
49 | put_decor (maptile *map, char **maze, char *decorstyle, int decor_option, random_map_params *RP) |
49 | { |
50 | { |
50 | maptile *decor_map; |
51 | maptile *decor_map; |
51 | char style_name[256]; |
52 | char style_name[1024]; |
52 | |
53 | |
53 | sprintf (style_name, "/styles/decorstyles"); |
54 | sprintf (style_name, "/styles/decorstyles"); |
54 | |
55 | |
55 | decor_map = find_style (style_name, decorstyle, -1); |
56 | decor_map = find_style (style_name, decorstyle, -1); |
56 | if (decor_map == NULL) |
57 | if (decor_map == NULL) |