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.130 by root, Fri Mar 26 01:04:44 2010 UTC vs.
Revision 1.131 by root, Sun Apr 4 02:51:56 2010 UTC

400 400
401 // return an array of maprects corresponding 401 // return an array of maprects corresponding
402 // to the given rectangular area. the last rect will have 402 // to the given rectangular area. the last rect will have
403 // a 0 map pointer. 403 // a 0 map pointer.
404 maprect *split_to_tiles (dynbuf &buf, int x0, int y0, int x1, int y1); 404 maprect *split_to_tiles (dynbuf &buf, int x0, int y0, int x1, int y1);
405
406 MTH bool is_in_shop (int x, int y) const;
405}; 407};
408
409inline bool
410object::is_in_shop () const
411{
412 return is_on_map ()
413 && map->is_in_shop (x, y);
414}
406 415
407//+GPL 416//+GPL
408 417
409/* This is used by get_rangevector to determine where the other 418/* This is used by get_rangevector to determine where the other
410 * creature is. get_rangevector takes into account map tiling, 419 * creature is. get_rangevector takes into account map tiling,

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines