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.112 by root, Thu Jul 12 18:48:20 2007 UTC vs.
Revision 1.113 by root, Fri Jul 13 15:54:40 2007 UTC

880 * Remove and free all objects in the given map. 880 * Remove and free all objects in the given map.
881 */ 881 */
882void 882void
883maptile::clear () 883maptile::clear ()
884{ 884{
885 sfree (regions, size ()), regions = 0; 885 sfree (regions, size ()); regions = 0;
886 free (regionmap), regionmap = 0; 886 delete [] regionmap; regionmap = 0;
887 887
888 if (spaces) 888 if (spaces)
889 { 889 {
890 for (mapspace *ms = spaces + size (); ms-- > spaces; ) 890 for (mapspace *ms = spaces + size (); ms-- > spaces; )
891 while (object *op = ms->bot) 891 while (object *op = ms->bot)

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines