ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/deliantra/server/common/map.C
(Generate patch)

Comparing deliantra/server/common/map.C (file contents):
Revision 1.205 by root, Wed May 4 07:41:13 2011 UTC vs.
Revision 1.208 by root, Sat May 7 10:50:35 2011 UTC

369 for (mapspace *ms = spaces + size (); ms-- > spaces; ) 369 for (mapspace *ms = spaces + size (); ms-- > spaces; )
370 for (object *op = ms->bot; op; op = op->above) 370 for (object *op = ms->bot; op; op = op->above)
371 op->activate_recursive (); 371 op->activate_recursive ();
372 372
373 state = MAP_ACTIVE; 373 state = MAP_ACTIVE;
374
375 activate_physics ();
374} 376}
375 377
376void 378void
377maptile::deactivate () 379maptile::deactivate ()
378{ 380{
835 msg = 0; 837 msg = 0;
836 maplore = 0; 838 maplore = 0;
837 shoprace = 0; 839 shoprace = 0;
838 delete [] shopitems, shopitems = 0; 840 delete [] shopitems, shopitems = 0;
839 841
840 for (int i = 0; i < TILE_NUM; i++) 842 for (int i = 0; i < array_length (tile_path); i++)
841 tile_path [i] = 0; 843 tile_path [i] = 0;
842} 844}
843 845
844maptile::~maptile () 846maptile::~maptile ()
845{ 847{
852 /* We need to look through all the maps and see if any maps 854 /* We need to look through all the maps and see if any maps
853 * are pointing at this one for tiling information. Since 855 * are pointing at this one for tiling information. Since
854 * tiling can be asymetric, we just can not look to see which 856 * tiling can be asymetric, we just can not look to see which
855 * maps this map tiles with and clears those. 857 * maps this map tiles with and clears those.
856 */ 858 */
857 for (int i = 0; i < 4; i++) 859 for (int i = 0; i < array_length (tile_path); i++)
858 if (tile_map[i] == m) 860 if (tile_map[i] == m)
859 tile_map[i] = 0; 861 tile_map[i] = 0;
860} 862}
861 863
862void 864void

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines