--- deliantra/server/include/map.h 2006/12/31 10:28:36 1.43 +++ deliantra/server/include/map.h 2007/01/01 12:28:47 1.46 @@ -98,7 +98,7 @@ #define P_IS_ALIVE 0x10 /* something alive is on this space */ #define P_NO_CLERIC 0x20 /* no clerical spells cast here */ -#define P_NEED_UPDATE 0x80 /* this space is out of date */ +#define P_UPTODATE 0x80 /* this space is up to date */ /* The following two values are not stored in the MapLook flags, but instead * used in the get_map_flags value - that function is used to return @@ -136,7 +136,7 @@ void update_ (); void update () { - if (flags_ & P_NEED_UPDATE) + if (!(flags_ & P_UPTODATE)) update_ (); } @@ -233,6 +233,7 @@ uint32 ACC (RW, reset_timeout); /* How many seconds must elapse before this map * should be reset */ + bool ACC (RW, dirty); /* if true, something was inserted or removed */ bool ACC (RW, fixed_resettime); /* if true, reset time is not affected by * players entering/exiting map */ @@ -286,6 +287,9 @@ MTH void set_darkness_map (); MTH int estimate_difficulty () const; + // set the given flag on all objects in the map + MTH void set_object_flag (int flag, int value = 1); + MTH void link_multipart_objects (); MTH void clear_unique_items (); @@ -319,6 +323,8 @@ MTH object *insert (object *op, int x, int y, object *originator = 0, int flags = 0); + MTH void touch () { last_access = runtime; } + // static maptile *find_map (const char *path, maptile *origin);//PERL // // // load a map relative to this one