ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/deliantra/server/random_maps/random_map.c
(Generate patch)

Comparing deliantra/server/random_maps/random_map.c (file contents):
Revision 1.1.1.1 by root, Fri Feb 3 07:14:21 2006 UTC vs.
Revision 1.1.1.2 by elmex, Wed Feb 22 18:03:16 2006 UTC

1/* 1/*
2 * static char *rcsid_random_map_c = 2 * static char *rcsid_random_map_c =
3 * "$Id: random_map.c,v 1.1.1.1 2006/02/03 07:14:21 root Exp $"; 3 * "$Id: random_map.c,v 1.1.1.2 2006/02/22 18:03:16 elmex 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
103 strcpy(theMap->path,OutFileName); 103 strcpy(theMap->path,OutFileName);
104 104
105 /* set region */ 105 /* set region */
106 theMap->region=RP->region; 106 theMap->region=RP->region;
107 107
108 /* create walls unless the wallstyle is "none" */
109 if (strcmp (RP->wallstyle, "none")) {
108 make_map_walls(theMap,layout,RP->wallstyle,RP); 110 make_map_walls(theMap,layout,RP->wallstyle,RP);
109 111
112 /* place doors unless doorstyle or wallstyle is "none"*/
113 if (strcmp (RP->doorstyle, "none"))
110 put_doors(theMap,layout,RP->doorstyle,RP); 114 put_doors(theMap,layout,RP->doorstyle,RP);
115
116 }
111 117
118 /* create exits unless the exitstyle is "none" */
119 if (strcmp (RP->exitstyle, "none"))
112 place_exits(theMap,layout,RP->exitstyle,RP->orientation,RP); 120 place_exits(theMap,layout,RP->exitstyle,RP->orientation,RP);
113 121
114 place_specials_in_map(theMap,layout,RP); 122 place_specials_in_map(theMap,layout,RP);
115 123
124 /* create monsters unless the monsterstyle is "none" */
125 if (strcmp (RP->monsterstyle, "none"))
116 place_monsters(theMap,RP->monsterstyle,RP->difficulty,RP); 126 place_monsters(theMap,RP->monsterstyle,RP->difficulty,RP);
117 127
118 /* treasures needs to have a proper difficulty set for the map. */ 128 /* treasures needs to have a proper difficulty set for the map. */
119 theMap->difficulty=calculate_difficulty(theMap); 129 theMap->difficulty=calculate_difficulty(theMap);
120 130
131 /* create treasure unless the treasurestyle is "none" */
132 if (strcmp (RP->treasurestyle, "none"))
121 place_treasure(theMap,layout,RP->treasurestyle,RP->treasureoptions,RP); 133 place_treasure(theMap,layout,RP->treasurestyle,RP->treasureoptions,RP);
122 134
135 /* create decor unless the decorstyle is "none" */
136 if (strcmp (RP->decorstyle, "none"))
123 put_decor(theMap,layout,RP->decorstyle,RP->decoroptions,RP); 137 put_decor(theMap,layout,RP->decorstyle,RP->decoroptions,RP);
124 138
125 /* generate treasures, etc. */ 139 /* generate treasures, etc. */
126 fix_auto_apply(theMap); 140 fix_auto_apply(theMap);
127 141
128 unblock_exits(theMap,layout,RP); 142 unblock_exits(theMap,layout,RP);

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines