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

Comparing deliantra/server/common/utils.C (file contents):
Revision 1.14 by root, Thu Sep 14 01:34:41 2006 UTC vs.
Revision 1.17 by root, Fri Nov 17 19:40:53 2006 UTC

16 16
17 You should have received a copy of the GNU General Public License 17 You should have received a copy of the GNU General Public License
18 along with this program; if not, write to the Free Software 18 along with this program; if not, write to the Free Software
19 Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. 19 Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
20 20
21 The authors can be reached via e-mail at crossfire-devel@real-time.com 21 The authors can be reached via e-mail at <crossfire@schmorp.de>
22*/ 22*/
23 23
24/* 24/*
25 * General convenience functions for crossfire. 25 * General convenience functions for crossfire.
26 */ 26 */
200} 200}
201 201
202/* decay and destroy persihable items in a map */ 202/* decay and destroy persihable items in a map */
203 203
204void 204void
205decay_objects (mapstruct *m) 205decay_objects (maptile *m)
206{ 206{
207 int x, y, destroy; 207 int x, y, destroy;
208 object *op, *otmp; 208 object *op, *otmp;
209 209
210 if (m->unique) 210 if (m->unique)
545 return; 545 return;
546} 546}
547 547
548///////////////////////////////////////////////////////////////////////////// 548/////////////////////////////////////////////////////////////////////////////
549 549
550#if 0
551refcounted *refcounted::rc_first;
552
553refcounted::refcounted ()
554{
555 refcnt = 0;
556 rc_next = rc_first;
557 rc_first = this;
558}
559
560refcounted::~refcounted ()
561{
562 assert (!rc_next);
563 assert (!refcnt);
564}
565#endif
566
550void *alloc (int s) throw (std::bad_alloc) 567void *alloc (int s) throw (std::bad_alloc)
551{ 568{
552 void *p = g_slice_alloc (s); 569 void *p = g_slice_alloc (s);
553 570
554 if (!p) 571 if (!p)
579 } 596 }
580 else 597 else
581 memcpy (dst, src, len + 1); 598 memcpy (dst, src, len + 1);
582} 599}
583 600
601

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines