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.7 by root, Thu Dec 14 22:45:40 2006 UTC vs.
Revision 1.8 by root, Wed Dec 20 09:14:22 2006 UTC

267 do 267 do
268 { 268 {
269 limit++; 269 limit++;
270 x = RANDOM () % MAP_WIDTH (style); 270 x = RANDOM () % MAP_WIDTH (style);
271 y = RANDOM () % MAP_HEIGHT (style); 271 y = RANDOM () % MAP_HEIGHT (style);
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;
277 else 277 else

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines