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.135 by root, Sun Apr 20 23:25:09 2008 UTC vs.
Revision 1.137 by root, Wed Apr 30 16:26:28 2008 UTC

1/* 1/*
2 * This file is part of Deliantra, the Roguelike Realtime MMORPG. 2 * This file is part of Deliantra, the Roguelike Realtime MMORPG.
3 * 3 *
4 * Copyright (©) 2005,2006,2007 Marc Alexander Lehmann / Robin Redeker / the Deliantra team 4 * Copyright (©) 2005,2006,2007,2008 Marc Alexander Lehmann / Robin Redeker / the Deliantra team
5 * Copyright (©) 2001-2003,2007 Mark Wedel & Crossfire Development Team 5 * Copyright (©) 2001-2003,2007 Mark Wedel & Crossfire Development Team
6 * Copyright (©) 1992,2007 Frank Tore Johansen 6 * Copyright (©) 1992,2007 Frank Tore Johansen
7 * 7 *
8 * Deliantra is free software: you can redistribute it and/or modify 8 * Deliantra is free software: you can redistribute it and/or modify
9 * it under the terms of the GNU General Public License as published by 9 * it under the terms of the GNU General Public License as published by
22 */ 22 */
23 23
24#include <unistd.h> 24#include <unistd.h>
25 25
26#include "global.h" 26#include "global.h"
27#include "funcpoint.h"
28 27
29#include "loader.h" 28#include "loader.h"
30 29
31#include "path.h" 30#include "path.h"
32 31
812 LOG (llevDebug, "bad luck for object crossing map borders: %s", head->debug_desc ()); 811 LOG (llevDebug, "bad luck for object crossing map borders: %s", head->debug_desc ());
813 head->destroy (); 812 head->destroy ();
814 } 813 }
815 } 814 }
816 815
817 sfree (spaces, size ()), spaces = 0; 816 sfree0 (spaces, size ());
818 } 817 }
819 818
820 if (buttons) 819 if (buttons)
821 free_objectlinkpt (buttons), buttons = 0; 820 free_objectlinkpt (buttons), buttons = 0;
822 821
823 sfree (regions, size ()); regions = 0; 822 sfree0 (regions, size ());
824 delete [] regionmap; regionmap = 0; 823 delete [] regionmap; regionmap = 0;
825} 824}
826 825
827void 826void
828maptile::clear_header () 827maptile::clear_header ()

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines