--- deliantra/server/common/map.C 2009/10/21 00:44:39 1.166 +++ deliantra/server/common/map.C 2009/11/05 15:43:21 1.167 @@ -28,6 +28,8 @@ #include "loader.h" #include "path.h" +//+GPL + sint8 maptile::outdoor_darkness; /* This rolls up wall, blocks_magic, blocks_view, etc, all into @@ -244,6 +246,8 @@ container->update_weight (); } +//-GPL + void maptile::set_object_flag (int flag, int value) { @@ -268,6 +272,8 @@ INVOKE_OBJECT (RESET, tmp); } +//+GPL + /* link_multipart_objects go through all the objects on the map looking * for objects whose arch says they are multipart yet according to the * info we have, they only have the head (as would be expected when @@ -304,6 +310,8 @@ } } +//-GPL + /* * Loads (ands parses) the objects into a given map from the specified * file pointer. @@ -474,6 +482,8 @@ spaces = salloc0 (size ()); } +//+GPL + /* Takes a string from a map definition and outputs a pointer to the array of shopitems * corresponding to that string. Memory is allocated for this, it must be freed * at a later date. @@ -585,6 +595,8 @@ return buf; } +//-GPL + /* This loads the header information of the map. The header * contains things like difficulty, size, timeout, etc. * this used to be stored in the map object, but with the @@ -685,6 +697,8 @@ abort (); } +//+GPL + /****************************************************************************** * This is the start of unique map handling code *****************************************************************************/ @@ -711,6 +725,8 @@ } } +//-GPL + bool maptile::_save_header (object_freezer &freezer) { @@ -777,6 +793,8 @@ return freezer.save (path); } +//+GPL + /* * Remove and free all objects in the given map. */ @@ -1524,6 +1542,8 @@ return adjacent_map (op1->map, op2->map, &dx, &dy); } +//-GPL + object * maptile::insert (object *op, int x, int y, object *originator, int flags) { @@ -1545,6 +1565,8 @@ return ::region::default_region (); } +//+GPL + /* picks a random object from a style map. */ object * @@ -1569,6 +1591,8 @@ return archetype::find ("bug"); } +//-GPL + void maptile::play_sound (faceidx sound, int x, int y) const {