--- deliantra/server/include/map.h 2006/12/26 05:44:15 1.35 +++ deliantra/server/include/map.h 2006/12/27 09:28:01 1.38 @@ -291,13 +291,16 @@ void gather_callbacks (AV *&callbacks, event_type event) const; MTH void allocate (); - MTH int size () const { return width * height; } - mapspace const &at (uint32 x, uint32 y) const { return spaces [x + width * y]; } - mapspace &at (uint32 x, uint32 y) { return spaces [x + width * y]; } + MTH object *insert (object *op, int x, int y, object *originator = 0, int flags = 0); + + mapspace const &at (uint32 x, uint32 y) const { return spaces [x * height + y]; } + mapspace &at (uint32 x, uint32 y) { return spaces [x * height + y]; } }; +#define for_all_maps(var) for (maptile *var = first_map; var; var = var->next) + /* This is used by get_rangevector to determine where the other * creature is. get_rangevector takes into account map tiling, * so you just can not look the the map coordinates and get the