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

Comparing deliantra/server/random_maps/decor.C (file contents):
Revision 1.5 by root, Tue Dec 12 21:39:56 2006 UTC vs.
Revision 1.6 by root, Wed Dec 20 09:14:22 2006 UTC

34obj_count_in_map (maptile *map, int x, int y) 34obj_count_in_map (maptile *map, int x, int y)
35{ 35{
36 int count = 0; 36 int count = 0;
37 object *tmp; 37 object *tmp;
38 38
39 for (tmp = get_map_ob (map, x, y); tmp != NULL; tmp = tmp->above) 39 for (tmp = GET_MAP_OB (map, x, y); tmp != NULL; tmp = tmp->above)
40 count++; 40 count++;
41 return count; 41 return count;
42} 42}
43 43
44/* put the decor into the map. Right now, it's very primitive. */ 44/* put the decor into the map. Right now, it's very primitive. */

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines