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.18 by root, Fri Apr 11 21:09:53 2008 UTC vs.
Revision 1.19 by root, Mon Apr 14 22:41:17 2008 UTC

33obj_count_in_map (maptile *map, int x, int y) 33obj_count_in_map (maptile *map, int x, int y)
34{ 34{
35 int count = 0; 35 int count = 0;
36 object *tmp; 36 object *tmp;
37 37
38 for (tmp = GET_MAP_OB (map, x, y); tmp != NULL; tmp = tmp->above) 38 for (tmp = GET_MAP_OB (map, x, y); tmp; tmp = tmp->above)
39 count++; 39 count++;
40
40 return count; 41 return count;
41} 42}
42 43
43/* 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. */
44 45

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines