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

Comparing deliantra/server/random_maps/style.C (file contents):
Revision 1.8 by root, Wed Dec 20 09:14:22 2006 UTC vs.
Revision 1.9 by root, Mon Dec 25 14:43:23 2006 UTC

265 * any difference, but this seems clearer to me. 265 * any difference, but this seems clearer to me.
266 */ 266 */
267 do 267 do
268 { 268 {
269 limit++; 269 limit++;
270 x = RANDOM () % MAP_WIDTH (style); 270 x = RANDOM () % style->width;
271 y = RANDOM () % MAP_HEIGHT (style); 271 y = RANDOM () % style->height;
272 new_obj = GET_MAP_OB (style, x, y); 272 new_obj = GET_MAP_OB (style, x, y);
273 } 273 }
274 while (new_obj == NULL && limit < 1000); 274 while (new_obj == NULL && limit < 1000);
275 if (new_obj->head) 275 if (new_obj->head)
276 return new_obj->head; 276 return new_obj->head;

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines