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.21 by root, Wed Feb 7 02:04:47 2007 UTC vs.
Revision 1.22 by root, Sat Feb 17 23:32:11 2007 UTC

168 } 168 }
169 169
170 object *fountain = get_archetype ("fountain"); 170 object *fountain = get_archetype ("fountain");
171 object *potion = object::create (); 171 object *potion = object::create ();
172 172
173 pick_random_object (fountain_style)->copy_to (potion); 173 fountain_style->pick_random_object ()->copy_to (potion);
174 174
175 while (i < 0 && tries < 10) 175 while (i < 0 && tries < 10)
176 { 176 {
177 ix = rndm (map->width - 2) + 1; 177 ix = rndm (map->width - 2) + 1;
178 iy = rndm (map->height - 2) + 1; 178 iy = rndm (map->height - 2) + 1;
219 object *the_exit = object::create (); 219 object *the_exit = object::create ();
220 220
221 if (!exit_style) 221 if (!exit_style)
222 return; 222 return;
223 223
224 pick_random_object (exit_style)->copy_to (the_exit); 224 exit_style->pick_random_object ()->copy_to (the_exit);
225 225
226 while (i < 0) 226 while (i < 0)
227 { 227 {
228 ix = rndm (map->width - 2) + 1; 228 ix = rndm (map->width - 2) + 1;
229 iy = rndm (map->height - 2) + 1; 229 iy = rndm (map->height - 2) + 1;

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines