pingus-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: none


From: Ingo Ruhnke
Subject: Re: none
Date: 16 Sep 2002 19:19:40 +0200
User-agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.2

David Philippi <address@hidden> writes:

> Strange, I thought that the data would be initialized in the XY_Data
> default constructor which ought to be called by
> WorldObjsDataFactory... Initializing them in the data class is
> probably not the best idea anyway since then every Surface of every
> WorldObj would be initialized. Some day this could lead to quite a
> lot of memory usage.

The factory doesn't call the default constructor:

  WorldObjData* create (xmlDocPtr doc, xmlNodePtr cur) {
    return new T (doc, cur); 
  }

Anyway, CL_Surfaces shouldn't have been part of the data objects in
the first place, I also cleaned that up mostly.

-- 
WWW:      http://pingus.seul.org/~grumbel/ 
Games:    http://pingus.seul.org/~grumbel/gamedesigns/
JabberID: address@hidden 
ICQ:      59461927




reply via email to

[Prev in Thread] Current Thread [Next in Thread]