--- deliantra/server/include/map.h 2008/12/23 01:51:28 1.101 +++ deliantra/server/include/map.h 2008/12/23 06:58:23 1.102 @@ -255,11 +255,14 @@ int ACC (RW, max_nrof); // maximum nrof of any single item on a mapspace uint64 ACC (RW, max_volume); // maximum volume for all items on a mapspace - MTH sint8 darklevel () const + // the maptile:: is neccessary here for the perl interface to work + MTH sint8 darklevel (sint8 outside = maptile::outdoor_darkness) const { - return clamp (outdoor ? darkness + outdoor_darkness : darkness, 0, MAX_DARKNESS); + return clamp (outdoor ? darkness + outside : darkness, 0, MAX_DARKNESS); } + static void adjust_daylight (); + MTH void activate (); MTH void deactivate (); @@ -272,8 +275,6 @@ MTH void do_decay_objects (); MTH void update_buttons (); MTH int change_map_light (int change); - static void change_all_map_light (int change); //PERL - MTH void set_darkness_map (); MTH int estimate_difficulty () const; MTH void play_sound (faceidx sound, int x, int y) const;