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

Comparing deliantra/server/random_maps/special.C (file contents):
Revision 1.10 by root, Mon Dec 25 14:43:23 2006 UTC vs.
Revision 1.11 by root, Sat Dec 30 18:45:28 2006 UTC

194 insert_ob_in_map (potion, map, NULL, 0); 194 insert_ob_in_map (potion, map, NULL, 0);
195 195
196} 196}
197 197
198void 198void
199place_special_exit (maptile *map, int hole_type, RMParms * RP) 199place_special_exit (maptile *map, int hole_type, random_map_params * RP)
200{ 200{
201 int ix, iy, i = -1; 201 int ix, iy, i = -1;
202 char buf[HUGE_BUF], *style, *decor, *mon; 202 char buf[HUGE_BUF], *style, *decor, *mon;
203 maptile *exit_style = find_style ("/styles/misc", "obscure_exits", -1); 203 maptile *exit_style = find_style ("/styles/misc", "obscure_exits", -1);
204 int g_xsize, g_ysize; 204 int g_xsize, g_ysize;
271 if (g_ysize < MIN_RANDOM_MAP_SIZE) 271 if (g_ysize < MIN_RANDOM_MAP_SIZE)
272 g_ysize = MIN_RANDOM_MAP_SIZE; 272 g_ysize = MIN_RANDOM_MAP_SIZE;
273 273
274 write_parameters_to_string (buf, g_xsize, g_ysize, RP->wallstyle, RP->floorstyle, mon, 274 write_parameters_to_string (buf, g_xsize, g_ysize, RP->wallstyle, RP->floorstyle, mon,
275 "none", style, decor, "none", RP->exitstyle, 0, 0, 0, 275 "none", style, decor, "none", RP->exitstyle, 0, 0, 0,
276 OPT_WALLS_ONLY, 0, 0, 1, RP->dungeon_level, RP->dungeon_level, 276 RMOPT_WALLS_ONLY, 0, 0, 1, RP->dungeon_level, RP->dungeon_level,
277 RP->difficulty, RP->difficulty, -1, 1, 0, 0, 0, 0, RP->difficulty_increase); 277 RP->difficulty, RP->difficulty, -1, 1, 0, 0, 0, 0, RP->difficulty_increase);
278 the_exit->slaying = "/!"; 278 the_exit->slaying = "/!";
279 the_exit->msg = buf; 279 the_exit->msg = buf;
280 280
281 insert_ob_in_map (the_exit, map, NULL, 0); 281 insert_ob_in_map (the_exit, map, NULL, 0);
282} 282}
283 283
284 284
285void 285void
286place_specials_in_map (maptile *map, char **layout, RMParms * RP) 286place_specials_in_map (maptile *map, char **layout, random_map_params * RP)
287{ 287{
288 maptile *special_map; 288 maptile *special_map;
289 int ix, iy; /* map insertion locatons */ 289 int ix, iy; /* map insertion locatons */
290 int special_type; /* type of special to make */ 290 int special_type; /* type of special to make */
291 291

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines