[tuhopuu-devel] Bugfix for gameengine code.
Kester Maddock
tuhopuu-devel@blender.org
Mon, 15 Mar 2004 19:29:20 +1300
Hi Joseph,
I'm not sure if this is the right solution - SM_Objects are owned by other
classes which will delete them - by class SumoPhysicsController (Game
objects,) KX_NearSensors & SM_FhObjects. There's not supposed to be any in
SM_Scene when it is destroyed - the solution is to try and find why they are
not being destroyed where they are supposed to.
And it was updated eight days ago! ;-)
Kester
On Sunday 14 March 2004 13:16, Joseph wrote:
> Hi. The following code (to be put in SM_Scene.cpp) seems to fix the
> problem in new SUMO-enabled gameengine builds where objects
> (SM_Objects) remain in memory after a user exits the gameengine mode.
>
> Who's doing the gameengine, anyway? The CVS hasn't been updated for a
> long time. . .
>
> SM_Scene::~SM_Scene()
> {
> int i;
> if (m_objectList.begin() != m_objectList.end()) {
> // std::cout << "SM_Scene::~SM_Scene: There are still objects in
> the Sumo scene!" << std::endl;
> i = 0;
> do {
> delete m_objectList[i];
> i=i+1;
> } while (i < m_objectList.size());
> }
> DT_DestroyRespTable(m_respTable);
> DT_DestroyScene(m_scene);
> }
>
> joeedh
> _______________________________________________
> tuhopuu-devel mailing list
> tuhopuu-devel@blender.org
> http://www.blender.org/mailman/listinfo/tuhopuu-devel
>
>
>
> !DSPAM:4053b7fb73071416669276!