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.14 by root, Sun Dec 31 20:46:17 2006 UTC vs.
Revision 1.15 by root, Sun Dec 31 20:48:27 2006 UTC

114 theMap->path = OutFileName; 114 theMap->path = OutFileName;
115 115
116 /* set region */ 116 /* set region */
117 theMap->region = RP->region; 117 theMap->region = RP->region;
118 118
119 coroapi.cede (); 119 coroapi::cede ();
120 /* create walls unless the wallstyle is "none" */ 120 /* create walls unless the wallstyle is "none" */
121 if (strcmp (RP->wallstyle, "none")) 121 if (strcmp (RP->wallstyle, "none"))
122 { 122 {
123 make_map_walls (theMap, layout, RP->wallstyle, RP); 123 make_map_walls (theMap, layout, RP->wallstyle, RP);
124 124
126 if (strcmp (RP->doorstyle, "none")) 126 if (strcmp (RP->doorstyle, "none"))
127 put_doors (theMap, layout, RP->doorstyle, RP); 127 put_doors (theMap, layout, RP->doorstyle, RP);
128 128
129 } 129 }
130 130
131 coroapi.cede (); 131 coroapi::cede ();
132 /* create exits unless the exitstyle is "none" */ 132 /* create exits unless the exitstyle is "none" */
133 if (strcmp (RP->exitstyle, "none")) 133 if (strcmp (RP->exitstyle, "none"))
134 place_exits (theMap, layout, RP->exitstyle, RP->orientation, RP); 134 place_exits (theMap, layout, RP->exitstyle, RP->orientation, RP);
135 135
136 coroapi.cede (); 136 coroapi::cede ();
137 place_specials_in_map (theMap, layout, RP); 137 place_specials_in_map (theMap, layout, RP);
138 138
139 coroapi.cede (); 139 coroapi::cede ();
140 /* create monsters unless the monsterstyle is "none" */ 140 /* create monsters unless the monsterstyle is "none" */
141 if (strcmp (RP->monsterstyle, "none")) 141 if (strcmp (RP->monsterstyle, "none"))
142 place_monsters (theMap, RP->monsterstyle, RP->difficulty, RP); 142 place_monsters (theMap, RP->monsterstyle, RP->difficulty, RP);
143 143
144 coroapi.cede (); 144 coroapi::cede ();
145 /* treasures needs to have a proper difficulty set for the map. */ 145 /* treasures needs to have a proper difficulty set for the map. */
146 theMap->difficulty = theMap->estimate_difficulty (); 146 theMap->difficulty = theMap->estimate_difficulty ();
147 147
148 coroapi.cede (); 148 coroapi::cede ();
149 /* create treasure unless the treasurestyle is "none" */ 149 /* create treasure unless the treasurestyle is "none" */
150 if (strcmp (RP->treasurestyle, "none")) 150 if (strcmp (RP->treasurestyle, "none"))
151 place_treasure (theMap, layout, RP->treasurestyle, RP->treasureoptions, RP); 151 place_treasure (theMap, layout, RP->treasurestyle, RP->treasureoptions, RP);
152 152
153 coroapi.cede (); 153 coroapi::cede ();
154 /* create decor unless the decorstyle is "none" */ 154 /* create decor unless the decorstyle is "none" */
155 if (strcmp (RP->decorstyle, "none")) 155 if (strcmp (RP->decorstyle, "none"))
156 put_decor (theMap, layout, RP->decorstyle, RP->decoroptions, RP); 156 put_decor (theMap, layout, RP->decorstyle, RP->decoroptions, RP);
157 157
158 coroapi.cede (); 158 coroapi::cede ();
159 /* generate treasures, etc. */ 159 /* generate treasures, etc. */
160 theMap->fix_auto_apply (); 160 theMap->fix_auto_apply ();
161 161
162 coroapi.cede (); 162 coroapi::cede ();
163 unblock_exits (theMap, layout, RP); 163 unblock_exits (theMap, layout, RP);
164 164
165 /* free the layout */ 165 /* free the layout */
166 for (i = 0; i < RP->Xsize; i++) 166 for (i = 0; i < RP->Xsize; i++)
167 free (layout[i]); 167 free (layout[i]);

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines