ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/deliantra/server/include/map.h
(Generate patch)

Comparing deliantra/server/include/map.h (file contents):
Revision 1.37 by root, Wed Dec 27 05:59:58 2006 UTC vs.
Revision 1.38 by root, Wed Dec 27 09:28:01 2006 UTC

297 297
298 mapspace const &at (uint32 x, uint32 y) const { return spaces [x * height + y]; } 298 mapspace const &at (uint32 x, uint32 y) const { return spaces [x * height + y]; }
299 mapspace &at (uint32 x, uint32 y) { return spaces [x * height + y]; } 299 mapspace &at (uint32 x, uint32 y) { return spaces [x * height + y]; }
300}; 300};
301 301
302#define for_all_maps(var) for (maptile *var = first_map; var; var = var->next)
303
302/* This is used by get_rangevector to determine where the other 304/* This is used by get_rangevector to determine where the other
303 * creature is. get_rangevector takes into account map tiling, 305 * creature is. get_rangevector takes into account map tiling,
304 * so you just can not look the the map coordinates and get the 306 * so you just can not look the the map coordinates and get the
305 * righte value. distance_x/y are distance away, which 307 * righte value. distance_x/y are distance away, which
306 * can be negative. direction is the crossfire direction scheme 308 * can be negative. direction is the crossfire direction scheme

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines